Uninstall Tracking
Note: Uninstall tracking requires the app to support push notifications. See Apple's guide to implementing APNS.
To configure uninstall tracking:
- Enable the app in Singular by following the guide: Setting Up iOS Install Tracking.
- In the app, send Singular the device token returned from the Apple Push Notification Service (APNS). To pass the device token to Singular use the registerDeviceTokenForUninstall or registerDeviceToken method. Do this before the Singular SDK is Initialized. This must be called from the AppDelegate didRegisterForRemoteNotificationsWithDeviceToken method.
Note: If you are already retrieving a device token from an existing push notification implementation, you can use that value.
The APNS token is usually binary data in the native form. Pass the token as received from APNS. If the app alters the token data type pass it as a hex-encoded string, e.g.: b0adf7c9730763f88e1a048e28c68a9f806ed032fb522debff5bfba010a9b052
registerDeviceTokenForUninstall Method | |
---|---|
Description | Pass the device token returned from APNS. |
Signature | + (void)registerDeviceTokenForUninstall:(NSData*)deviceToken; |
Usage Example |
|