简体   繁体   中英

How do i whitelist a redirect URL for my android app

Im trying to work with spotify's API, with java on Android studio and one of the requirement is that i whitelist a redirect URI that the Spotify Accounts Service will use to callback to my app after authorization. I've only worked with a weather API in an android app ive built with java on android studio and i didn't whitelist a redirect URL for it, so im lost here.

Your redirect URI should be the package name of your app, with a ://callback at the end.

String REDIRECT_URI = "com.yourdomain.yourapp://callback";

This looks confusing because it is, but it does say URI not URL so it is correct.

Spotify needs to get back to your app after its authorized the user so it needs to know your app name.

For a guide: https://developer.spotify.com/documentation/android/quick-start/

For whitelisting: https://developer.spotify.com/dashboard/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM