mobileGetDeviceToken | |||||||
Type | function | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Synonyms | iphonegetdevicetoken | ||||||
Summary | Returns the Device Token used for Push Notification. | ||||||
Introduced | 5.5 | ||||||
OS | ios, android | ||||||
Platforms | mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Message: pushNotificationRegistrationError, pushNotificationRegistered, pushNotificationReceived Glossary: message | ||||||
Description | Use the mobileGetDeviceToken function to return the Device Token that is used by the Push Notification Server to identify to which device to send a notification. LiveCode registers for push notifications with the operating system when your application starts. The operating system sends a callback message pushNotificationRegistered to your application once registration is complete.
As a result, the mobileGetDeviceToken function should be called when you handle the pushNotificationRegistered message. |