title | category | parentDoc | order | hidden |
---|---|---|---|---|
Uninstall measurement |
5f9705393c689a065c409b23 |
645213236f53a00d4daa9230 |
6 |
false |
AppsFlyer enables you to measure app uninstalls. To handle notifications it requires to modify your AppDelegate.m
. Use didRegisterForRemoteNotificationsWithDeviceToken to register to the uninstall feature.
Example:
@import AppsFlyerLib;
...
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
// notify AppsFlyerLib
[[AppsFlyerLib shared] registerUninstall:deviceToken];
}
Read more about Uninstall Measurement: Appsflyer SDK support site
Pass the device token to AppsFlyer
Example:
appsFlyer.updateServerUninstallToken(deviceToken, (success) => {
//...
});
Update Firebase device token so it can be sent to AppsFlyer
Example:
appsFlyer.updateServerUninstallToken(newFirebaseToken, (success) => {
//...
});
Read more about Android Uninstall Measurement: Appsflyer SDK support site