Hello! I'm working on Firebase Push Notifications, and the extra data is not showing.
Here is how I push the notification:
And in the activity_resume, I get here fine:
Whenever I tap the notification, I get the first log message perfectly, "we are here", but the Notification_Tag is not getting logged. Has anyone else had this issue? Any help is much appreciated.
Thank you!
Here is how I push the notification:
B4X:
Dim n As Notification '//android only
Dim myTitle As String = Message.GetData.Get("title")
myTitle=myTitle.ToLowerCase()
If(myTitle.contains("message")) Then 'is a message notification
n.Initialize
n.Icon = "icon"
n.SetInfo2(myTitle, Message.GetData.Get("body"), myTitle, Main)
n.Notify(4)
End If
And in the activity_resume, I get here fine:
B4X:
Dim in As Intent
in = Activity.GetStartingIntent
Log("we are here")
If in.HasExtra("Notification_Tag") Then
Log(in.GetExtra("Notification_Tag")) 'Will log the tag
End If
Whenever I tap the notification, I get the first log message perfectly, "we are here", but the Notification_Tag is not getting logged. Has anyone else had this issue? Any help is much appreciated.
Thank you!
Last edited: