Open nowrap opened 6 years ago
Use the global deeplinks module.
import ...
declare const IonicDeeplink: any; // so that there's no Typescript error
@Component()
export class MyClass {
IonicDeeplink.route(
{
'/some-route': SomePage
},
match => { // do something },
nomatch => console.log('deeplink error: ', JSON.stringify(nomatch));
);
}
Hello, i am trying to implement an oauth process with ionic 3 on Windows 10 / Mac OS High Sierra.
Issue
On Android an iOS the me.deeplinks.route()-section is only triggered once. But on both platform i always get an:
console.log: On deep link [object Object]
On Android it strangly also triggers the handleOpenURL().
Code (app.module.ts)
Setup / Settings
This is my ionic info:
I adapted the auth0 discussion: https://github.com/auth0/auth0-cordova/issues/42
So I added to the config.xml:
<preference name="AndroidLaunchMode" value="singleInstance" />
<plugin name="cordova-plugin-background-mode" spec="git+https://github.com/katzer/cordova-plugin-background-mode.git" />
The background-mode is for iOS. It is just added and not activated.
With the WKWebView Plugin the iOS-App crashes, so i am not using it right now: https://github.com/katzer/cordova-plugin-background-mode/issues/317