iOS Question Retrieving the last Message coming from Remote Notification

Alberto Iglesias

Well-Known Member
Licensed User
Longtime User
How to get the last PUSH MESSAGE coming from Remote Notification?

I try getting from the UIApplicationLaunchOptionsRemoteNotificationKey but not work, the APP Crash

Dim ln As Notification = App.LaunchOptions.Get("UIApplicationLaunchOptionsRemoteNotificationKey")


Something have an idea how I can start APP from remote notification AND GET the last message?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
It is fired in both cases.
The Application_RemoteNotification event will be raised when a message arrives while the app is in the foreground. If the app is not in the foreground then a standard alert message will appear. The user can click on the message to the start the app. The Application_RemoteNotification event will be fired after the app is started.
 
Upvote 0
Top