Announcements

Help Wizard

Step 1

NEXT STEP

IOS: Spotify return error when user accept request in spotify app

IOS: Spotify return error when user accept request in spotify app

After return from spotify app i receive response from delegate:
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:])
-> test.app://party/?action=callback_spotify&error=server_error&spotify_version=9.1.18.1494

My redirect uri is: test.app://party?action=callback_spotify

I check bundleId, urlScheme, redirectUrl, ClientIdToken But nothing wrong.
Please help me. Thank you

Reply
3 Replies

Hi @trannguyen141 

Thanks for posting in the Spotify Community, and Welcome!

 

I noticed that there is a splash/ after the first URI: test.app://party/? , and no slash after the second URI.

This difference might cause the error.

 

I hope this helps.

 

 

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

My uri setting in spotifySDK configuration: test.app://party?action=callback_spotify

There is no slash

But when receive callback from function url has slash test.app://party/?:

func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:])

I recommend adding a trailing slash to the URI in your appโ€™s dashboard.

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Suggested posts

Let's introduce ourselves!

Hey there you, ย  Yeah, you!ย 😁 ย  Welcome - we're glad you joined the Spotify Community! ย  While you here, let's have a fun game and getโ€ฆ

ModeratorStaff / Moderator/ 4 years ago  in Social & Random