I am attempting to use Firebase to pass deep links into my app that survive install.
To test this I am following the steps provided by the Firebase documentation and Firecast video here at about the 12min 40s mark. The steps are as follows:
- First I delete the app from my device.
- Then I press the link to open the app store.
- Then I run my app from xcode.
- Expected: The dynamicLink.url property will be equal to "https: //www.example.com/data/helloworld" in application:openURL
- Reality: The dynamicLink.url property arrives nil.
This is the deeplink url that I created in the Firebase console: https://nqze6app.goo.gl/RIl8
This is the url that is passed into application:openURL prior to being passed into dynamicLinkFromCustomSchemeURL : com.johnbogil.voices://google/link/dismiss?fdl_cookie
This is the code in 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 is arriving nil. Any assistance is appreciated.
application:openURL
call? and 2. The fully expanded dynamic link? (In the Firebase control panel, click on "Link details" in the overflow menu and you should see it below.) – Credible