App Uninstall Tracking

πŸ“˜

App Uninstall Tracking is only supported for Airbridge iOS SDK v1.13.0 or later.

Introduction to Uninstall Tracking

Using silent push notifications, Airbridge allows you to track and attribute uninstalls for up to a lookback of 6 months.

Uninstall event data can be found through Actuals Report, Raw Data Export, AWS S3 Export, or GCP Export.

Developer Setting

App Identifier

  1. Go to Identifiers in Apple Developer.
  2. Select the relevant identifier of your App and click 'Push Notifications' button as shown in the image below.

Key

  1. Go to Keys in Apple Developer.
  2. Enter the Key that you're using and enable 'Apple Push Notification Service' (APNS) as shown on the image below.

If you don't have the Key, add a new key through + menu and download p8 certificates.

Airbridge Setting

App Identifier

  1. Go to Identifiers in Apple Developer.
  2. Choose the identifier of the app that you want to track uninstalls.
  3. Enter the App ID prefix of the identifier to Airbridge Dashboard.
  4. Enter the Bundle ID of the identifier to Airbridge Dashboard.

Key

  1. Go to Keys in Apple Developer.
  2. Choose the Key that you're using.
  3. Enter Key ID to Airbridge Dashboard.
  4. Upload p8 certificates of the key to Airbridge Dashboard.

Please make sure that you only can download p8 certificates once you create a Key.

Application Setting

Capabilities

  1. Go to Signing & Capabilities in Project file on Xcode.
  2. Click + Capability button.
  3. Add Background Modes and Push Notifications.
  4. Check Remote notifications on Background Modes.

AppDelegate

  1. Open the AppDelegate file.
  2. Add the code below.
func application(_ application: UIApplication,
                 didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool
{
    ...
    UIApplication.shared.registerForRemoteNotifications()
    ...
}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [UIApplication.sharedApplication registerForRemoteNotifications];
  
    return YES;
}
  1. And also add the code below.
func application(_ application: UIApplication,
                 didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data)
{
    AirBridge.registerPushToken(deviceToken)
}
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
    [AirBridge registerPushToken:deviceToken];
}
  1. In order to not display push notification in user's device, add exception handling logic by adding the code below.
func application(_ application: UIApplication,
                 didReceiveRemoteNotification userInfo: [AnyHashable : Any],
                 fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void)
{
    if userInfo["airbridge-uninstall-tracking"] as? Int == true {
        return;
    }
  
    ...
}
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {
    if ([userInfo[@"airbridge-uninstall-tracking"] boolValue] == YES) {
        return;
    }
  
    ...
}

Updated 10 months ago

App Uninstall Tracking


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.