我正在尝试获取Spotify iOS应用程序中当前播放歌曲的信息。场景如下:打开Spotify iOS应用程序,开始播放一首歌曲。将应用程序置于后台并打开我的iOS应用程序。有没有办法在我的iOS应用程序中获取在Spotify上播放的歌曲?
我已经尝试使用nowPlayingItem属性,如此帖子所述,但它没有起作用:On iPhone: Find out what song is currently playing? (in the iPod music player)
我已经尝试使用[MPNowPlayingInfoCenter defaultCenter].nowPlayingInfo属性,如此帖子所述,但它没起作用:Is there a way to access the currently played track while the iPhone is connected to an accessory?
我已经看到了相同的问题在苹果开发者论坛上提出:https://devforums.apple.com/message/903640#903640。
是否有人遇到这个问题?你找到了可行的解决方案吗?
谢谢,