<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Using the ios-sdk to control Spotify in app in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Using-the-ios-sdk-to-control-Spotify-in-app/m-p/5162258#M2112</link>
    <description>&lt;P&gt;I am writing a fitness app and I am trying to use the ios-sdk to control Spotify. I would like to be able to:&lt;/P&gt;&lt;P&gt;* See the album art&lt;/P&gt;&lt;P&gt;* See title/artist&lt;/P&gt;&lt;P&gt;* See song duration&lt;/P&gt;&lt;P&gt;* Play/Pause/Skip/Scrub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, I am using&amp;nbsp;SPTSessionManager to get a session. We have implemented the renew and swap endpoints on our server. We can get authenticated and perform the above tasks. The issue arises when the user restarts the application. The session manager loses the session and the user needs to re-authenticate. I have tried to cache the SPTSession manually, renew the session once the app restarted.&amp;nbsp;This works sometimes but not all times. Ultimately this has lead to the app launching Spotify sporadically when the user accesses our Spotify player in app.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my question is: "Am I using the ios-sdk correctly? Or is there a better way to control the Spotify player from in app?"&lt;/P&gt;</description>
    <pubDate>Mon, 01 Mar 2021 17:51:00 GMT</pubDate>
    <dc:creator>PeterFlexAI</dc:creator>
    <dc:date>2021-03-01T17:51:00Z</dc:date>
    <item>
      <title>Using the ios-sdk to control Spotify in app</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Using-the-ios-sdk-to-control-Spotify-in-app/m-p/5162258#M2112</link>
      <description>&lt;P&gt;I am writing a fitness app and I am trying to use the ios-sdk to control Spotify. I would like to be able to:&lt;/P&gt;&lt;P&gt;* See the album art&lt;/P&gt;&lt;P&gt;* See title/artist&lt;/P&gt;&lt;P&gt;* See song duration&lt;/P&gt;&lt;P&gt;* Play/Pause/Skip/Scrub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, I am using&amp;nbsp;SPTSessionManager to get a session. We have implemented the renew and swap endpoints on our server. We can get authenticated and perform the above tasks. The issue arises when the user restarts the application. The session manager loses the session and the user needs to re-authenticate. I have tried to cache the SPTSession manually, renew the session once the app restarted.&amp;nbsp;This works sometimes but not all times. Ultimately this has lead to the app launching Spotify sporadically when the user accesses our Spotify player in app.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my question is: "Am I using the ios-sdk correctly? Or is there a better way to control the Spotify player from in app?"&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 17:51:00 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Using-the-ios-sdk-to-control-Spotify-in-app/m-p/5162258#M2112</guid>
      <dc:creator>PeterFlexAI</dc:creator>
      <dc:date>2021-03-01T17:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using the ios-sdk to control Spotify in app</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Using-the-ios-sdk-to-control-Spotify-in-app/m-p/5162615#M2118</link>
      <description>Hey there,&lt;BR /&gt;&lt;BR /&gt;You might be able to use the steps from this article to improve this: &lt;A href="https://developer.spotify.com/documentation/ios/guides/application-lifecycle/" target="_blank"&gt;https://developer.spotify.com/documentation/ios/guides/application-lifecycle/&lt;/A&gt;. Let me know if you have any questions!&lt;BR /&gt;&lt;BR /&gt;Have a good one,&lt;BR /&gt;Hubo</description>
      <pubDate>Tue, 02 Mar 2021 11:19:44 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Using-the-ios-sdk-to-control-Spotify-in-app/m-p/5162615#M2118</guid>
      <dc:creator>Hubo</dc:creator>
      <dc:date>2021-03-02T11:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using the ios-sdk to control Spotify in app</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Using-the-ios-sdk-to-control-Spotify-in-app/m-p/5170983#M2186</link>
      <description>&lt;P&gt;This does not help. We are already doing this.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 01:06:34 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Using-the-ios-sdk-to-control-Spotify-in-app/m-p/5170983#M2186</guid>
      <dc:creator>PeterFlexAI</dc:creator>
      <dc:date>2021-03-19T01:06:34Z</dc:date>
    </item>
  </channel>
</rss>

