Authentication iOS

Reply

Authentication iOS

lecasesparse
Newbie

I am developing an iOS / Android application that allows access to remote control of Spotify player with authentication via native SDK.
At the first application start call the authorizeAndPlayURI of the SPTAppRemote, the apps switch correctly, and the control return to my application. However, if I pause the Spotify player or my app goes to the background, the remote player is disconnected and the only way to obtain control is to recall the authorizeAndPlayURI by making the switch again.
Isn't there another method to reobtain remote control by having token and refreshToken? For example Waze app on first access call the authorizeAndPlayURI but if I then put Waze in the background and reactivate it, it manages to regain control without switching at Spotify App.

 

Plan

Premium

Country

Italy 

 

Device

iPhone 11

Operating System

iOS 13

SUGGESTED POSTS