Skip to content

Instantly share code, notes, and snippets.

@cyborch
Created August 30, 2019 17:28
Show Gist options
  • Save cyborch/5ab460e5ed731e81efd586f3ce6f90d5 to your computer and use it in GitHub Desktop.
Save cyborch/5ab460e5ed731e81efd586f3ce6f90d5 to your computer and use it in GitHub Desktop.
// If you want to do something related to analytics in your app , then you should work in this file.
class AnalyticsService: NSObject, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
#if ALPHA
//register with one id
#else
//Register with another one
#endif
//Analytics manager starttracking
return true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment