Hi,
I wish that a third-party app was able to open my app using Deeplinks.
I’m passing to this third-party app the url_scheme to open: myapp://myapp.com/payments
My app is an Ionic4 app with Cordova plugins and this plugin to manage Deeplinks.
The problem is that, when the redirect should take place, nothing happens.
I’ve defined the Deeplink routing in this way:
import { Deeplinks } from '@ionic-native/deeplinks/ngx';
constructor(private deeplinks: Deeplinks) { }
this.deeplinks.route({
'/payments': {'payments': true}
}).subscribe(match => {
console.log('Successfully matched route', match);
alert(JSON.stringify(match));
}, nomatch => {
alert(JSON.stringify(nomatch ));
console.error('Got a deeplink that didn\'t match', nomatch);
});
If I open a web page from the mobile with this content and I click on the link:
<HTML>
<a href="myapp://myapp.com/payments">CLICK ME</a>
</HTML>
My Ionic app opens correctly.
From the third-party app, my app doesn’t open.
So the question is, am I missing some steps in setting up Deeplinks?
Should I do something on the domain “myapp.com” ?
Thank you very much
Claudio
1 post - 1 participant