React-Native Spotify SDK iOS: disabling auth window

I am developing a reaction based application using the following module:

https://github.com/viestat/react-native-spotify

Currently, the application opens an authentication window for logging in to determine. I will really return to success, but I am confused by how now I got rid of the window that appeared for entry. I understand that it should be redirected back to my application, but it just stays in the same window with the logout / account buttons.

Any ideas on how I dismissed this window on a returned successful message?

SpotifyAuth.setClientID('*****','*****', ['streaming', 'playlist-read-private'], (error)=>{
          if(error){
            console.log(error);
          } else {
            console.log('success');
          }
        });

Here are my settings in xcode ...

My redirect URI in Spotify app

+6
source share
2 answers

, (SpotifyLoginViewController, ), . , redirectURL, API setClientID, URI , Spotify (. ) - .

, URL , . , URL ( URL-, ) API.

+2

, URL- .

  • , URI Spotify My Applications.

  • , URI :

    • URI .
    • URI ( ) . , http. URI Spotify. URL, , .
    • , .
    • URI ( , - your-app://callback)
+2

Source: https://habr.com/ru/post/1016646/


All Articles