Retrieves the ID for this application in the current device to be used for push notifications.
Parameters
Target The control or variable to save the client ID.
In order for push notifications to become available you need to select the option Enable Push Notifications in the project properties
If you register your application to receive push notifications, you will need to call this on your application to retrieve the current client ID. Normally you will have to inform your server/backoffice of your ID so that your it can send push notification messages to the device.
This client ID can be refreshed by the operating system from time to time, so it is good practice to always query for this value when your application starts, compare it to the previous value, and if it has changed you need to re-send this new ID to your server/backoffice.
The format of this ID and how it can be used by your server/backoffice to send the notifications, is system dependent. So you should also inform the server/backoffice of the platform associated with this ID (Android/Windows 10), if you have deployed to multiple platforms, so it can send the appropriate push notification.