简体   繁体   English

Spotify集成因openURL Swift失败

[英]Spotify Integration failing with openURL Swift

I am integrating Spotify in one of my application. 我正在将Spotify集成到我的一个应用程序中。 I am getting the following error inspite of adding required URL schemes in info.plist: 尽管在info.plist中添加了必需的URL方案,但仍然出现以下错误:

-canOpenURL: failed for URL: "spotify:" - error: "(null)" -canOpenURL:URL失败:“ spotify:”-错误:“(空)”

Thanks in advance. 提前致谢。

  • From what I have read in other discussion forums make sure that after you have added the redirect_uri in the developer portal from Spotify, also save your changes its all the way at bottom up. 根据我在其他论坛上所读到的内容,请确保在您从Spotify在开发人员门户中添加redirect_uri之后,还应将其更改自下而上保存。

I'm also having issues with this an using swift I get a 200 code and a web page printed in my console as plain html, when I put it in chrome is a 404 page. 我也有这个问题,使用swift时,我将200代码和一个网页以纯HTML格式打印在控制台中,当我将其放在chrome中时是404页。

Also another tip: 还有另一个提示:

Im using http://localhost:8888/callback as my redirect uri after running a simple nodejs server. 我在运行一个简单的nodejs服务器后使用http://localhost:8888/callback作为我的重定向uri。

I'm having a doubt about this url encoding inside query string as the examples show %3A%2A%2A for :// and when I print the entire URL it doesn't show them like that 我对查询字符串中的此url编码有疑问,因为示例显示:// %3A%2A%2A,当我打印整个URL时,它不会像这样显示

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM