I am trying to use Firebase to transfer deep links to my application that survive installation.
To test this, I follow the steps provided by the Firebase documentation and the Firecast video here in about 12min 40 seconds. These steps are as follows:
- First I uninstall the application from my device.
- Then I click the link to open the application store.
- Then I launch my application from xcode.
- Expected: the dynamicLink.url property will be equal to "https://www.example.com/data/helloworld" in the application: openURL
- Reality: the dynamicLink.url property arrives at zero.
This is the deeplink url I created in the Firebase console: https://nqze6app.goo.gl/RIl8
This is the URL that is passed to the application: openURL before passing to dynamicLinkFromCustomSchemeURL: com.johnbogil.voices: // google / link / off? fdl_cookie
This is the code of my openURL call:
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options { FIRDynamicLink *dynamicLink = [[FIRDynamicLinks dynamicLinks] dynamicLinkFromCustomSchemeURL:url]; if (dynamicLink) { NSLog(@"I am handling a link through the openURL method"); [self handleDynamicLink:dynamicLink]; return YES; } else { return NO; } }
Not sure why dynamicLink.url arrives at zero. Any help is appreciated.
source share