spotify / ios-sdk

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

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

Open UsamaPixarsart opened 3 years ago

UsamaPixarsart commented 3 years ago

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.

slegetank commented 3 years ago

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.

josianebezerra commented 3 years ago

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.

mtcn commented 3 years ago

any updates on this issue?

josianebezerra commented 2 years ago

This should be fixed now from Spotify version 8.6.80.

slegetank commented 2 years ago

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 !

jverkoey commented 6 days ago

@josianebezerra Looks like this thread should be closed.