iOS Question Cannot get push notification's data on click notification

cloner7801

Active Member
Licensed User
Longtime User
Hi
I can send push with firebase to app
And receive push in iOS and show notification
But when i click on notification and enter to app,notification tag is empty and cannot get push's data
 

cloner7801

Active Member
Licensed User
Longtime User
Are you handling the Application_RemoteNotification event?

Notification.NotificationTag will always be empty with push messages.
Are you handling the Application_RemoteNotification event?

Notification.NotificationTag will always be empty with push messages.
Yes,I'm handling the Application_RemoteNotification event when app is background and foreground
But when i kill app,Application_RemoteNotification event dont raise and only show notification
 
Upvote 0

cloner7801

Active Member
Licensed User
Longtime User
Don't explicitly kill your app. It will prevent push messages from being received.

Add this sub:
B4X:
Private Sub Application_PushToken (Success As Boolean, Token() As Byte)
Log("PushToken: " & Success)
Log(LastException)
End Sub

Is the token received successfully?
Yes PushToken received successfully
I dont have problem in receive push
Even when i kill app and receive push and click on notification,can get data from App.launchoption
 
Upvote 0

cloner7801

Active Member
Licensed User
Longtime User
This issue is fixed for B4i v3.0. Note that you can use silent push notifications and then the event will be raised even when your app is in the background.
I cannot receive raise event RemoteNotification only when app is kill
I can get data from App.Launch but i need to raise event RemoteNotification
The issue solved in B4i 3.0 ?
 
Upvote 0
Top