Open pougin opened 7 years ago
Solved for iOS. Modify file /src/ios/IonicDeeplinkPlugin.m, limit the scheme that deeplink deals with.
Edit method handleLink, add codes below line 39,
if (![[url scheme] isEqualToString:@"https"]) {
NSLog(@"IonicDeepLinkPlugin: Scheme not for deeplink: %@", [url scheme]);
return NO;
}
Thanks for the note, keeping this open until it gets in the code
is there a eta for this arriving in the code? im running into the as well. this would fix it. (also a redirect from another plugin)
Btw, I could make a PR for this, but bear in mind that this will break < ios8 as it breaks custom url schemes . So you prob want to add something to the readme
@Remco75 that would be much appreciated! We don't support iOS < 8 so that seems totally fine to me
@mlynch cool, I will do that. I'm away for the rest of the week, I will submit pr somewhere next week
And I see I made a mistake. It will break support <9 !
I am using ionic 1 and encountered one problem. This plugin cannot handle custom url schemes to other plugins.
In the log below, the plugin stops my Wechat SSO login callback method which relies on custom url scheme wxb00cac42c59bb5b3.
2017-08-08 19:07:33.059066+0800 pangmaomao[3196:694632] IonicDeepLinkPlugin: Handle link (internal) wxb00cac42c59bb5b3://oauth?code=021XiQ7z1TWsDd0ZEk5z1yxZ7z1XiQ7v&state=_1502190448416
2017-08-08 19:07:34.063903+0800 pangmaomao[3196:694632] retryHandleOpenURL
The process is:
Command the plugin was installed:
ionic cordova plugin add ionic-plugin-deeplinks --variable URL_SCHEME=ivynote --variable DEEPLINK_SCHEME=https --variable DEEPLINK_HOST=ivynote.cn --variable ANDROID_PATH_PREFIX=/
My system:
cli packages: (/usr/local/var/www/com.pangmaomao.app/node_modules)
global packages:
local packages:
System: