I am trying to handle the firebase invites when using universal links. When a user clicks on the invitation link, from the e-mail for example, the method below is called.
How to get the invitation from the url?
@available(iOS 8.0, *)
func application(application: UIApplication, continueUserActivity userActivity: NSUserActivity, restorationHandler: ([AnyObject]?) -> Void) -> Bool {
let handled = FIRDynamicLinks.dynamicLinks()?.handleUniversalLink(userActivity.webpageURL!) { (dynamiclink, error) in
// ...
}
return handled!
}
To get the invitation i need to call
FIRInvites.handleURL(url, sourceApplication:sourceApplication, annotation:annotation)
I think the problem lays on what to pass to application and annotation parameters. I already try passing the bundled on sourceApplication but has no effect.
Note: Methods used in firebase invitation example are not called once continueUserActivity method is added.