Everything is ok when I'm using Facebook App Ads Helper – Deep Link Tester. Application will be downloaded from the App Store, URL will be fetched and handled correctly.
But if I try to test it from my real Facebook Ad, application will be also downloaded from the App Store, but the fetched URL is always nil.
In situation when application is already installed on the device, URL will be correctly passed to my app and handled.
In the application delegate method I am fetching deferred deep link like that:
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
//Another code
FBSDKAppLinkUtility.fetchDeferredAppLink({ (URL, error) -> Void in
if error != nil {
//Handle error
}
if URL != nil {
application.openURL(URL)
}
})
return true
}
func application(application: UIApplication, openURL URL: NSURL, sourceApplication: String?, annotation: AnyObject?) -> Bool {
let result = self.handleURL(URL)
return result
}
I checked all installation guidelines several times, it seems that everything is ok.
is there any idea?
It seems that's everything is ok and it is my mistake in testing of the deep links. I tested it via Ad Preview, that didn't track user footprint. So Facebook deep links are working correctly now, we confirmed it by Mixpanel analytics.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With