spotify / ios-sdk

Spotify SDK for iOS
https://developer.spotify.com/documentation/ios/
649 stars 186 forks source link

WKWebView redirect_uri not supported #82

Open s2ml opened 5 years ago

s2ml commented 5 years ago

Hello Spotify team,

I'm trying to use the Spotify SDK for iOS.

So far, there's a link(1) generated which shows the login request in a WKWebView. If I click on "Login with Facebook", there comes the Facebook error message "The redirect_uri URL is not supported". If I click on "Login" with Spotify username and password, nothing happens.

If I copy the generated link(1) into the normal browser (Safari), everything works fine, Facebook asks if my app "James" is allowed to access and then I get the callback URL(2) back with which I can go ahead.

Can anyone help me what I'm doing wrong in the WKWebView?

Thank you very much! Daniel

image1

(1) https://accounts.spotify.com/authorize?client_id=871ec9eedd4141da8e1d352d09a568d2&response_type=code&redirect_uri=james-spotify%3A%2F%2Fcallback%2F&scope=user-read-private%20user-read-email

(2) james-spotify://callback/?code=AQDozcSmKiuFzXG2IeLsKLKh5kEjzrcBx51Pk6agIUzywVe-z8G65XkCrLpyCcbYKCP3He9Vj-8_nMOob_AWq8KhOu5THEB40ua4xiehXoLSeytFNsqJS8Mfb-E6SS8GPEawPhPaot4AmYDrjnEcBZIcZdKgcLljZXZ-z4U2jOBrcamG5230JDCMBn014SiXhxQf9tQsBV5x-ZKpZUWgnGXU697F4U5DDaUzwiDc9KKolr8dAg

kkarayannis commented 4 years ago

Does this question refer to the Streaming SDK instead of this one? Please note that the Streaming SDK is deprecated and no longer supported.