App Uninstall Tracking iOS
Posted By : Nitin Bhatt | 27-Jun-2017
How can we track app uninstall in iOS ?
There are many tools which we can user to track iOS App uninstall like :-
1) Apps Flyer
2) Vizury
3) QGraph
4) Unistall.io etc
In this blog we will discuss about how can we track App unistall using Apps Flyer.
Step 1 :- Install AppFlyer SDK using CocoaPods.
pod 'AppsFlyerFramework’
Step 2 :- Export .p12 file
Open Keychain Acesss -> Select your production push notification certificate -> Export .p12
Step 3 :- Upload .p12 certificate on AppFlyer
Login with your account on AppFlyer -> Open App Settings on left menu -> Upload your certificate with password
Please see the screen shot for refrence.
Step 4 :- Intialize AppFyer in AppDelegate.swift
func initializingAppsFlyer() {
AppsFlyerTracker.sharedTracker().appsFlyerDevKey = "DevKey"
AppsFlyerTracker.sharedTracker().appleAppID = "Apple App ID"
AppsFlyerTracker.sharedTracker().delegate = self
}
Get developer key from the app flyer account and the Apple App ID from apple account of your app then call "initializingAppsFlyer" function from "didFinishLaunchingWithOptions"
func applicationDidBecomeActive(application: UIApplication) {
AppsFlyerTracker.sharedTracker().trackAppLaunch()
}
Step 6:- To track unistall write this code inside "didRegisterForRemoteNotificationWithDeviceToken"
func application(application: UIApplication,didRegisterForRemoteNotificationsWithDeviceToken deviceToken: NSData) {
let characterSet: NSCharacterSet = NSCharacterSet( charactersInString: "<>" )
let deviceTokenString: String = ( deviceToken.description as NSString )
.stringByTrimmingCharactersInSet( characterSet )
.stringByReplacingOccurrencesOfString( " ", withString: "" ) as String
NSUserDefaults.standardUserDefaults().setObject(deviceTokenString, forKey: "deviceToken")
AppsFlyerTracker.sharedTracker().registerUninstall(deviceToken)
}
We can test how many user have uninstall the app via using apps flyer dashboard. Please see the image for refrence
Please Note :-
AppFlyer will only track app uninstall when user allow Push notification permission.
I hope it will help. Thanks
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Nitin Bhatt
Nitin is an Assistant Project Manager specializing in iOS Application Development. He is an avid reader.