react-native-spotify icon indicating copy to clipboard operation
react-native-spotify copied to clipboard

Invalid Redirect URI

Open jordan-loeser opened this issue 8 years ago • 3 comments

Hello! Thanks so much for putting together this helpful library! I am a little confused about how the redirect URI plays into a native environment. Could someone provide an example? Right now I am passing in a URI that matches that in my Spotify Developer Dashboard but I am getting an ERROR / Invalid Redirect URI message.

jordan-loeser avatar Dec 22 '17 07:12 jordan-loeser

Hello @Jordan-Loeser ! From SDK documentation : The Redirect URI will allow the Spotify authentication service to automatically launch your app again once the user has logged in.

Note that you also need to include the Redirect URI into the URL Schemes of URL Types of your Xcode Project. Located under the info tab (see step 7 of Setting Up Your Build Environment section)

Let me know if this helps :)

viestat avatar Dec 22 '17 17:12 viestat

@viestat Thanks for your quick response! I have set up a unique URI in Xcode, but I am still seeing the below screen after logging in on Spotify. The first time I log in and press "Log In", the screen just sits there. If I close out of the Safari window and press "Log in with Spotify" again I see this: screen shot 2017-12-22 at 1 50 10 pm Any ideas? I believe that the URL should be working, because if I type it in Safari it asks me if I want to open the app. Side note, I am just working in the ./examples directory from this repository with my own client id and redirect uri entered.

Thanks for your help!

jordan-loeser avatar Dec 22 '17 18:12 jordan-loeser

Hey @Jordan-Loeser , I have tried to reproduce this error but I have not encountered the same issue. I went through the initial config again and used the example app form /examples folder.

My redirect URL is something like this: someapp://callback

viestat avatar Dec 27 '17 18:12 viestat