Android Question Application_RemoteNotification for Android

Marco Maria Vilucchi

Active Member
Licensed User
Longtime User
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
 

DonManfred

Expert
Licensed User
Longtime User
How can I do the same in B4A?
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
 
Upvote 0

Marco Maria Vilucchi

Active Member
Licensed User
Longtime User
Thanks DonManfred.
Yes, i read Tutorial, but you are not my teacher and you are not questioning me, so you do not have to EXPECT anything from me
 
Upvote 0
Top