mercredi 22 juin 2016

FirebaseNotifications data null

hello i send from firebase a notification, and the data return null:

Message data: {}

my code(from the tut):

Code:
  Sub fm_MessageArrived (Message As RemoteMessage)
Log("Message arrived")
Log($"Message data: ${Message.GetData}"$)
Log($"Message: ${Message}"$)
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


from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/28N0zJg
via IFTTT

Aucun commentaire:

Enregistrer un commentaire