Is there any way to check that the app is getting opened using deeplinking plugin or access of url that is going to be opened


#1

I have implemented deep-linking in my application and uses this logic.

if (this.platform.is(‘cordova’)) {
this.deeplinks.route({
‘/event_id/description’:‘EventPage’
}).subscribe((match) => {
console.log(‘Successfully routed’, match);
}, (nomatch) => {
console.log(‘Unmatched Route’, nomatch);
});
this.initializeOneSignal()
}

this.skipProvider.getSkip().then(val=>{
if(val){
console.log(‘in skip and auth’)
this.auth.getJwt().then(data =>{
if(data){
this.token=data;
this.postOneSignalToken();
this.rootPage=“AfterLoginHomePage”;
}else{
this.rootPage=“SigninPage”;
}
})
}else{
this.rootPage=“SliderPage”;
}
})

So when I use deeplinkid://5/description. it first opens the event description page and then redirects to AfterLoginHomePage as the user is logged in.

Is there any way to check what url is going to be opened in app.components.ts before deep linking