MobileNotifications.RemoteRegistrationSucceeded

From Xojo Documentation

Event


MobileNotifications.RemoteRegistrationSucceeded(token as String)

New in 2020r2

Supported for all project types and targets.

The request to send remote notifications succeeded.

Notes

This event is called in response to calling the RegisterForRemoteNotifications method.

The device token passed was created by and registered with Apple's Push Notification service (APNs). The token is unique to this instance of your app. If the user reinstalls the app for any reason, calling RegisterForRemoteNotifications will generate a new token.

This token is required in order to send remote notifications to the instance of the app the token represents. Therefore you will want to store the token in the database where you keep information about the user.

fa-exclamation-circle-32.png
Do not store the token on the device as this presents a security risk.

See Also

RegisterForRemoteNotifications method.