This is the scenario:
- I have an Ionic4 app running in iOS, with package name com.myapps.app1
- I have a second Ionic4 app, also in iOS, from where I want to launch app1.
I installed the App Launcher plugin and runnig this code on a button on the 2nd app:
let options: AppLauncherOptions = { };
options.uri = "https://com.myapps.app1/";
this.appLauncher.canLaunch(options)
.then((canLaunch: boolean) => {
if (canLaunch) {
this.appLauncher.launch(options);
} else {
alert('App is not available');
}
})
.catch((error: any) => alert(error));
}
Then I go to my phone, opens App1 and then open App2 and push the button, and it says the app is not available. If I change the uri to “com.myapps.app1://” then I get an error saying that there is no app installed for that uri.
Any idea of what I am doing wrong?
TIA