Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  

UNNotification.RemoteNotificationsDeviceToken

Queries device token.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
UNNotification 7.2 No No No No Yes

MBS( "UNNotification.RemoteNotificationsDeviceToken" )

Parameters

none

Result

Returns text.

Description

Queries device token.
If the registration for remote notifications is successful, this function will return the hex encoded device token. You can pass the device token to your server sending the push notifications.
Text is empty if registration failed.
e.g. "416204F694DA65CC1AFD9E473C7E44C22DD66B61FD4DA61B255A89EE436B6F61"

See UNNotification.RemoteNotificationsError for the reason. Push notifications are not supported in iOS
Simulator!

Examples

Show device token:

Show Custom Dialog ["Device Token"; MBS("UNNotification.RemoteNotificationsDeviceToken")]

See also


UNNotification.ReleaseAll   -   UNNotification.RemoteNotificationsError

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins