{"action":"created","issue":{"url":"https://api.github.com/repos/spotify/ios-sdk/issues/418","repository_url":"https://api.github.com/repos/spotify/ios-sdk","labels_url":"https://api.github.com/repos/spotify/ios-sdk/issues/418/labels{/name}","comments_url":"https://api.github.com/repos/spotify/ios-sdk/issues/418/comments","events_url":"https://api.github.com/repos/spotify/ios-sdk/issues/418/events","html_url":"https://github.com/spotify/ios-sdk/issues/418","id":100594231,"node_id":"MDU6SXNzdWUxMDA1OTQyMzE=","number":418,"title":"Feature request: I'd like to know what track is currently being played by Spotify iOS app","user":{"login":"LucasCoelho","id":2384916,"node_id":"MDQ6VXNlcjIzODQ5MTY=","avatar_url":"https://avatars1.githubusercontent.com/u/2384916?v=4","gravatar_id":"","url":"https://api.github.com/users/LucasCoelho","html_url":"https://github.com/LucasCoelho","followers_url":"https://api.github.com/users/LucasCoelho/followers","following_url":"https://api.github.com/users/LucasCoelho/following{/other_user}","gists_url":"https://api.github.com/users/LucasCoelho/gists{/gist_id}","starred_url":"https://api.github.com/users/LucasCoelho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LucasCoelho/subscriptions","organizations_url":"https://api.github.com/users/LucasCoelho/orgs","repos_url":"https://api.github.com/users/LucasCoelho/repos","events_url":"https://api.github.com/users/LucasCoelho/events{/privacy}","received_events_url":"https://api.github.com/users/LucasCoelho/received_events","type":"User","site_admin":false},"labels":[{"id":83951151,"node_id":"MDU6TGFiZWw4Mzk1MTE1MQ==","url":"https://api.github.com/repos/spotify/ios-sdk/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":378725393,"node_id":"MDU6TGFiZWwzNzg3MjUzOTM=","url":"https://api.github.com/repos/spotify/ios-sdk/labels/playback","name":"playback","color":"c5def5","default":false},{"id":466088885,"node_id":"MDU6TGFiZWw0NjYwODg4ODU=","url":"https://api.github.com/repos/spotify/ios-sdk/labels/spotify%20app","name":"spotify app","color":"c2e0c6","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2015-08-12T17:28:56Z","updated_at":"2018-06-13T09:11:37Z","closed_at":"2018-06-13T09:11:37Z","author_association":"NONE","body":"If I have the Spotify app installed and my app uses this SDK, I'd like my app to be able to know that the user is listening to right now\n"},"comment":{"url":"https://api.github.com/repos/spotify/ios-sdk/issues/comments/396870122","html_url":"https://github.com/spotify/ios-sdk/issues/418#issuecomment-396870122","issue_url":"https://api.github.com/repos/spotify/ios-sdk/issues/418","id":396870122,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Njg3MDEyMg==","user":{"login":"arirawr","id":6777313,"node_id":"MDQ6VXNlcjY3NzczMTM=","avatar_url":"https://avatars1.githubusercontent.com/u/6777313?v=4","gravatar_id":"","url":"https://api.github.com/users/arirawr","html_url":"https://github.com/arirawr","followers_url":"https://api.github.com/users/arirawr/followers","following_url":"https://api.github.com/users/arirawr/following{/other_user}","gists_url":"https://api.github.com/users/arirawr/gists{/gist_id}","starred_url":"https://api.github.com/users/arirawr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arirawr/subscriptions","organizations_url":"https://api.github.com/users/arirawr/orgs","repos_url":"https://api.github.com/users/arirawr/repos","events_url":"https://api.github.com/users/arirawr/events{/privacy}","received_events_url":"https://api.github.com/users/arirawr/received_events","type":"User","site_admin":false},"created_at":"2018-06-13T09:11:37Z","updated_at":"2018-06-13T09:11:37Z","author_association":"CONTRIBUTOR","body":"Hi all, the recommended way of doing this is through the new [App Remote SDK](https://developer.spotify.com/documentation/ios-app-remote/), which allows your application to interact with the Spotify app running in the background on a user’s device. Capabilities include getting metadata for the currently playing track and context as well as issuing playback commands.\r\n\r\nYou can easily subscribe to the Spotify app's `PlayerState` like this:\r\n```\r\nfunc playerStateDidChange(_ playerState: SPTAppRemotePlayerState) {\r\n  // view info about current playback in playerState object\r\n  debugPrint(\"Track name: %@\", playerState.track.name)\r\n}\r\n```\r\n\r\nYou can also control the Spotify app's playback directly: `appRemote.authorizeAndPlayURI(spotifyuri)`\r\n\r\nCheck out the full documentation here: https://developer.spotify.com/documentation/ios-app-remote/\r\nAnd let us know if you have any feedback here: https://github.com/spotify/ios-app-remote-sdk\r\n\r\nI'm going to close this issue, as this functionality will not be implemented in the SDK this issue tracker pertains to 🙂  "}}
{"actor":{"display_login":"arirawr"}}