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

Android SDK is broken ?

Open Loown opened this issue 4 years ago • 6 comments

Hi,

It seems that Spotify connection is not working on android returning this error: Error not specified

(It's working on iOS)

It happens here : RNSpotifyRemoteAuth, line 97

I can't see any way to dig deeper, if you have any clue for me please I'll take it

Loown avatar Apr 19 '21 19:04 Loown

I'm really lost, one of my authorize() is working but the other don't I get a 500 error, there is no differences between them, same configuration, token and scopes

Loown avatar Apr 22 '21 15:04 Loown

Hey, @Loown I'll have to take a look. There was a new release that did change some things in the android side of the library. I did however test things out on the example app in the repo, but I may need to double check in one of my own apps.

If you're getting a 500 tho, that would indicate that the error is happening outside of this library (since this library doesn't generate http errors). What is the error message that it returns?

cjam avatar Apr 26 '21 15:04 cjam

Hey, @Loown I'll have to take a look. There was a new release that did change some things in the android side of the library. I did however test things out on the example app in the repo, but I may need to double check in one of my own apps.

If you're getting a 500 tho, that would indicate that the error is happening outside of this library (since this library doesn't generate http errors). What is the error message that it returns?

The error does not specify anything else than Error not specified, it falls in the default of authorization switch statement and give no more explanations

It's really strange, I think you can't do much because it seems to be linked to android SDK, I made a post on spotify community forum, but still no answers

The fact that the same call in 2 different locations of the app are handled differently is really strange, I'll try ot dig deeper and get more logs

Loown avatar Apr 26 '21 16:04 Loown

sounds good. Have you tried setting a break point there and inspecting things in the debugger? Sometimes I find it's helpful for snooping around at the objects.

cjam avatar Apr 26 '21 17:04 cjam

@Loown i think the problem is caused by android 11. On android 11 we should specify the connections. Adding this lines to AndroidManifest should solve the problem

<queries> <package android:name="com.spotify.music" /> </queries>

https://community.spotify.com/t5/Spotify-for-Developers/Why-can-t-I-use-the-SDK-on-Android-OS-11/m-p/5062921/highlight/true#M1438

IbrahimCanKALYA avatar Nov 04 '21 07:11 IbrahimCanKALYA

@Loown did this comment help?

@Loown i think the problem is caused by android 11. On android 11 we should specify the connections. Adding this lines to AndroidManifest should solve the problem

<queries> <package android:name="com.spotify.music" /> </queries>

https://community.spotify.com/t5/Spotify-for-Developers/Why-can-t-I-use-the-SDK-on-Android-OS-11/m-p/5062921/highlight/true#M1438

cjam avatar Nov 11 '21 14:11 cjam