【发布时间】:2017-09-16 11:23:42
【问题描述】:
我一直在使用以下模块开发一个 react-native 应用程序:
https://github.com/viestat/react-native-spotify
目前,应用程序打开身份验证窗口以登录到 spotify。我确实得到了成功的回报,但我很困惑我现在如何摆脱弹出的登录窗口。我知道它应该重定向回我的应用程序,但它只是与注销/我的帐户按钮保持在同一个窗口上。
任何想法我将如何在返回的成功消息上关闭此窗口?
SpotifyAuth.setClientID('*****','*****', ['streaming', 'playlist-read-private'], (error)=>{
if(error){
console.log(error);
} else {
console.log('success');
}
});
【问题讨论】:
-
嗨史蒂夫,你能分享这个项目吗,我需要确定你是否已经在你的 info.plist(
the call has to be added on web too while creating the application) 中添加了callback,你也检查了这个developer.spotify.com/technologies/spotify-ios-sdk/tutorial/… ?
标签: ios reactjs react-native spotify