ios-sdk icon indicating copy to clipboard operation
ios-sdk copied to clipboard

[iOS] Spotify iOS SDK give invalid request error when authorise via Spotify app

Open UsamaPixarsart opened this issue 3 years ago • 5 comments

Device

(iPhone 11 Pro Max)

Operating System

(iOS 14.7.1.)

We are using react native module for the Spotify Remote SDK in our app. It was working fine on both android & iOS, but for past two days its not authorising on iOS for US and Pakistani registered spotify accounts. We have tried Sri-Lanken spotify account, its worked for few days then it also showed the same error.

It was working fine in 8.6.56 but it is not working with recent Spotify app releases (8.6.68, 8.6.70)

It is also working when I force the web view authorisation by removing "spotify" out of LSApplicationQueriesSchemes. But this is not a desired UX flow.

Is there some change recently that I should be aware of? How do we fix this?

Thanks for your time.

UsamaPixarsart avatar Oct 21 '21 07:10 UsamaPixarsart

I have the same issue with the latest Spotify app (8.8.72, SDK 1.2.2). It's working OK before, but recently when I use SSO feature to authorize 3rd party app, sometimes it's working OK, but when the - (void)sessionManager:(SPTSessionManager *)manager didFailWithError:(NSError *)error returns error "Error Domain=com.spotify.sdk.login Code=1 "invalid_request" UserInfo={NSLocalizedDescription=invalid_request}: Fail" , this authorize flow would always fail with this same error. Still trying to find out why.

slegetank avatar Oct 27 '21 08:10 slegetank

Hi @UsamaPixarsart and @slegetank,

Thanks for reporting this issue. We have identified issues on the Spotify app that are causing this problem. We are working on getting them fixed asap. You can expect this to be fixed in next app release.

josianebezerra avatar Nov 09 '21 13:11 josianebezerra

any updates on this issue?

mtcn avatar Nov 16 '21 11:11 mtcn

This should be fixed now from Spotify version 8.6.80.

josianebezerra avatar Nov 22 '21 09:11 josianebezerra

This should be fixed now from Spotify version 8.6.80.

I just update app version to 8.6.80, and this issue has been fixed. Thanks for your team's effort @josianebezerra !

slegetank avatar Nov 22 '21 12:11 slegetank