I application stream is as follows:
- Launch the application
- In the browser (Chrome), the Spotify "Allow access to applications" page opens.
- The user grants permission to the application and is redirected to https://appurl.com/spotify-callback/ ,
- This url has a deep binding, so my application is now open again,
- The deep link plugin should now match
/spotify-callback/and open a page called SpotifyCallbackPage that should open, but I get an errorconsole.error: Got a deeplink that didn't match
My deep link code looks like this:
deeplinks.route({
'/spotify-callback/': SpotifyCallbackPage
}).subscribe((match) => {
console.log('Successfully matched route', match);
}, (nomatch) => {
console.error('Got a deeplink that didn\'t match');
console.log(nomatch);
});
URL sent to the router:
https://appurl.com/spotify-callback/
Full error message:
error opening ws message: {"category":"console","type":"log","data":["On deep
link",{"url":"https://appurl.com/spotify-callback/#access_token=random-access-token-here&token_type=Bearer&expires_in=3600","path":"/spotify-callback/","scheme":"https","host":"appurl.com","fragment":"access_token=random-access-token-here&token_type=Bearer&expires_in=3600","extra":{"org.chromium.chrome.browser.eenp":["io.ionic.starter"],"org.chromium.chrome.browser.referrer_id":21,"com.android.browser.application_id":"com.android.chrome"}}]}
[16:28:02] console.error: Got a deeplink that didn't match
URL- , . - , ?