I created a test app with the instructions in this thread https://www.b4x.com/android/forum/threads/integrating-firebase-services.67692/, that runs regularly.
But the fields title and body are null.
why?
Thanks
But the fields title and body are null.
B4X:
Sub fm_MessageArrived (Message As RemoteMessage)
Log("Message arrived")
Log($"Message data: ${Message.GetData}"$)
Log(Message.From )
Dim aData As Map = Message.GetData
For i = 0 To aData.Size -1
Log(aData.GetKeyAt(i) & " " & aData.GetValueAt(i))
Next
Dim n As Notification
n.Initialize
n.Icon = "icon"
n.SetInfo(Message.GetData.Get("title"), Message.GetData.Get("body"), Main)
n.Notify(1)
End Sub
why?
Thanks