Hi all,
with B4I, when arrives a remote notification, using firebase, system calls automatically a sub named Application_RemoteNotification.
In this Sub I can read the message and use it, in example, for a Msgbox2.
How can I do the same in B4A?
Thanks
Marco
In Firebase - and i EXPECT you have read and understand the Tutorial and Example code - the sub is just another name.
I don´t know b4i but in b4a you get the Message in the Service FirebaseMessaging in the Sub fm_MessageArrived
B4X:
Sub fm_MessageArrived (Message As RemoteMessage)
Log("Message arrived")
Log($"Message data: ${Message.GetData}"$)
[...]
end sub