Je suis flux des applications va comme ceci:Inégalée lien profond dans ionique 3
- Launch App
- Spotify 'allow App accès de la page est ouverte dans le navigateur (Chrome),
- Le l'utilisateur donne l'autorisation d'application et est redirigé vers https://appurl.com/spotify-callback/,
- cette URL est profondément lié pour que mon application est maintenant ouvert à nouveau,
- le plugin lien profond devrait maintenant correspondre
/spotify-callback/
et ouvrez la page nommée SpotifyCallbackPage shou ld être ouvert mais je reçois l'erreurconsole.error: Got a deeplink that didn't match
Mon code lien profond ressemble:
deeplinks.route({
'/spotify-callback/': SpotifyCallbackPage
}).subscribe((match) => {
// match.$route - the route we matched, which is the matched entry from the arguments to route()
// match.$args - the args passed in the link
// match.$link - the full link data
console.log('Successfully matched route', match);
}, (nomatch) => {
// nomatch.$link - the full link data
console.error('Got a deeplink that didn\'t match');
console.log(nomatch);
});
L'URL envoyée au routeur est:
https://appurl.com/spotify-callback/#access_token=random-access-token-here&token_type=Bearer&expires_in=3600
Le message d'erreur complet est :
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
J'ai essayé différentes URL et d points d'extrémité dans le routeur mais aucun d'entre eux ne correspondra. Est-ce que quelqu'un sait ce que je devrais essayer de faire correspondre?
Il me semble avoir le même problème, avez-vous réussi à résoudre ce problème? https://stackoverflow.com/questions/44238121/why-android-does-not-handle-a-deeplink-url-which-has-in-the-path pourrait aussi être intéressant. –