I developd app that receive Firebase notification from B4J. I would like the app to open when the user clicks on the notification. In the FirebaseMessaging I wrote:
FirebaseMessaging:
Sub fm_MessageArrived (Message As RemoteMessage)
Log("Message arrived")
Log($"Message data: ${Message.GetData}"$)
Dim n As Notification
n.Initialize2(n.IMPORTANCE_HIGH)
n.Icon = "alert"
n.AutoCancel=True
n.SetInfo2("Titolo: "&Message.GetData.Get("title"), Message.GetData.Get("body"), "test!", Main)
n.Notify(1)
End Sub
But, when you click on the notification, nothing happens.
SOLVED! Thanks Erel, If I run app in Release mode and I send notification with .NET (including the block "data" - it's important) the popup is shown and the app starts correctly.
Long live B4A! ?