I try this, but don't work:
in main.bas
Sub Process_Globals
Dim lastFBMtitle As String
Dim lastFBMbody As String
...
Sub Activity_Resume
Dim in As Intent
in = Activity.GetStartingIntent
If in.HasExtra("Notification_Tag") Then
Log(in.GetExtra("Notification_Tag")) 'Will log the tag
Msgbox(lastFBMbody,lastFBMtitle)
End If
End Sub
In FirebaseMessaging
Sub fm_MessageArrived (Message As RemoteMessage)
Log("Message arrived")
Log($"Message data: ${Message.GetData}"$)
Dim n As Notification
n.Initialize
n.Icon = "icon"
'n.SetInfo(Message.GetData.Get("title"), Message.GetData.Get("body"), Main)
n.SetInfo2(Message.GetData.Get("title"), Message.GetData.Get("body"),"Notification_Tag", Main)
n.Notify(1)
Main.lastFBMtitle=Message.GetData.Get("title")
Main.lastFBMtitle=Message.GetData.Get("body")
End Sub