ionic-team / ionic-plugin-deeplinks

Handle deeplinks into your Ionic/Cordova apps from Universal Links, App Links, and Custom URL schemes. For those using Ionic 2, there are some nice goodies that make life easier.
Other
332 stars 220 forks source link

IOS Deeplinks Opens App but not enters to match or nomatch #237

Open sbalija-work opened 4 years ago

sbalija-work commented 4 years ago

Configured the deeplinks, I can see app is opened but cant able to see logs in the match or nomatch. Url: myOrg://myOrg.local/links

"URL_SCHEME": "myOrg", "DEEPLINK_HOST": "myOrg.local", "DEEPLINK_SCHEME": "myOrg",

This is working fine on Android device.

Here is the configuration that I used.

Ionic:

Ionic CLI : 7.3.9 Ionic Framework : @ionic/angular 4.11.5 @angular-devkit/build-angular : 0.13.9 @angular-devkit/schematics :7.3.9 @angular/cli : 7.3.9 @ionic/angular-toolkit : 1.5.1

Cordova: cordova-ios: 5.1.1 cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3,

lindon88 commented 4 years ago

Hi @sbalija-work

I have the same issue on iOS. I realised that openUrl is not called from plugins/ionic-plugin-deeplinks/src/ios/AppDelegate+IonicDeeplink.m

I also user cordova-plugin-firebasex where also there is defined an openUrl method in file: plugins/cordova-plugin-firebasex/src/ios/AppDelegate+FirebasePlugin.m

When I commented this block of code from plugins/cordova-plugin-firebasex/src/ios/AppDelegate+FirebasePlugin.m, the match/notmatch was triggered - (BOOL)application:(nonnull UIApplication *)application openURL:(nonnull NSURL *)url options:(nonnull NSDictionary<NSString *, id> *)options { return [[GIDSignIn sharedInstance] handleURL:url]; }

I am not sure if there is a more elegant solution to this issue.