Jorge Santamaria Magana
Member
Hi someone could help me with the following: I tried the Erel tutorial to integrate push notifications using Firebase, I managed to send them from a php project, but I have observed some details:
1. When the application is paused, the Title and the notification message arrive very well:
2. When the application is in use it generates a null notification.
3. In both cases when the notifications arrive when you click on them, it does not open the application.
4. Does not emit tone or vibration alert
Can anyone help me with it?
here is the code:
1. When the application is paused, the Title and the notification message arrive very well:
2. When the application is in use it generates a null notification.
3. In both cases when the notifications arrive when you click on them, it does not open the application.
4. Does not emit tone or vibration alert
Can anyone help me with it?
here is the code:
Code:
Sub fm_MessageArrived (Message As RemoteMessage)
Try
Log("Message arrived")
Log($"Message data: ${Message.GetData}"$)
Dim n As Notification
'n.Initialize
n.Initialize2 (n.IMPORTANCE_HIGH)
n.AutoCancel =True
n.Icon = "icon"
n.Vibrate = True
n.Light = True
n.Sound =True
n.SetInfo(Message.GetData.Get("title"), Message.GetData.Get("body"), Main)
n.Notify(1)
Catch
Log(LastException)
End Try
End Sub