Hello ! I’m already using Ionic Page for my web-app (for the URL’s).
But I need using deeplinks for push notification and confirmed mail.
I installed the deeplinks and it works perfectly with a none dynamic link (with login) :
app.component.ts
ngAfterViewInit() {
this.platform.ready().then(() => {
this.deeplinks.routeWithNavController(this.nav, {
'/login': 'login',
'/confirm-email/:uidb64/:token': 'confirm-email'
}).subscribe((match) => {
console.log('Successfully routed', match);
}, (nomatch) => {
console.warn('Unmatched Route', nomatch);
});
});
}
login.ts
@IonicPage({
name: 'login',
segment: 'connexion'
})
And I use :
$ adb shell am start -a android.intent.action.VIEW -d "myapp://login" cs.myapp
But when I tried the confirm-email path, there is no errors but nothing happen.
confirm-email.ts
@IonicPage({
name: 'confirm-email',
segment: 'confirm-email/:uidb64/:token'
})
Any ideas ?