Skip to content

Instantly share code, notes, and snippets.

@kineticac
Last active September 11, 2015 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kineticac/1562ebe6690477e6d471 to your computer and use it in GitHub Desktop.
Save kineticac/1562ebe6690477e6d471 to your computer and use it in GitHub Desktop.
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
let branch = Branch.getInstance()
branch.initSessionWithLaunchOptions(launchOptions, andRegisterDeepLinkHandler: { params, error in
if (error != nil) {
TrackingManager.track(eventName: "Branch failed", withProperties: ["errorMsg": error.localizedDescription, "code": "\(error.code)"], timed: false)
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment