<?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 Spotify WEB API from iOS App Can't Authenticate in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-WEB-API-from-iOS-App-Can-t-Authenticate/m-p/5071409#M1535</link>
    <description>&lt;P&gt;Hey guys, I'm trying to build an iOS application which makes use of the Spotify WEB API for a school project.&amp;nbsp; Basically I want to be able to authenticate through Spotify in the app and then be able to search and play songs on a phone with Spotify installed.&amp;nbsp; Easy.&amp;nbsp; However I'm having some trouble when I try to authenticate through Spotify.&amp;nbsp; A dialog box pops up saying "AppName wants to Use Spotify.com to Sign In" with two options, Cancel, and Continue.&amp;nbsp; I press Continue.&amp;nbsp; A page briefly pops up before going away, and in my console I see the following error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;[Error: The operation couldn’t be completed. (com.spotify.sdk.login error 3.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;The data couldn’t be read because it isn’t in the correct format.]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;What is an error 3?&amp;nbsp; Where can I see the definition of this error?&amp;nbsp; My redirect URI is a deep link pointing to a page in the app.&amp;nbsp; My token swap/refresh server is running as a heroku application.&amp;nbsp; I am building through XCode and testing on a physical iPhone.&amp;nbsp; Anyone have any suggestions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Update: Trying to authenticate through the iOS emulator takes me to a Spotify login page but gives me this error after trying to log in:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;[Error: The operation couldn’t be completed. (com.spotify.sdk.login error 1.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;An SSL error has occurred and a secure connection to the server cannot be made.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;The operation couldn’t be completed. (kCFErrorDomainCFNetwork error -1200.)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 14 Nov 2020 03:34:15 GMT</pubDate>
    <dc:creator>josephtclegg</dc:creator>
    <dc:date>2020-11-14T03:34:15Z</dc:date>
    <item>
      <title>Spotify WEB API from iOS App Can't Authenticate</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-WEB-API-from-iOS-App-Can-t-Authenticate/m-p/5071409#M1535</link>
      <description>&lt;P&gt;Hey guys, I'm trying to build an iOS application which makes use of the Spotify WEB API for a school project.&amp;nbsp; Basically I want to be able to authenticate through Spotify in the app and then be able to search and play songs on a phone with Spotify installed.&amp;nbsp; Easy.&amp;nbsp; However I'm having some trouble when I try to authenticate through Spotify.&amp;nbsp; A dialog box pops up saying "AppName wants to Use Spotify.com to Sign In" with two options, Cancel, and Continue.&amp;nbsp; I press Continue.&amp;nbsp; A page briefly pops up before going away, and in my console I see the following error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;[Error: The operation couldn’t be completed. (com.spotify.sdk.login error 3.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;The data couldn’t be read because it isn’t in the correct format.]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;What is an error 3?&amp;nbsp; Where can I see the definition of this error?&amp;nbsp; My redirect URI is a deep link pointing to a page in the app.&amp;nbsp; My token swap/refresh server is running as a heroku application.&amp;nbsp; I am building through XCode and testing on a physical iPhone.&amp;nbsp; Anyone have any suggestions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Update: Trying to authenticate through the iOS emulator takes me to a Spotify login page but gives me this error after trying to log in:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;[Error: The operation couldn’t be completed. (com.spotify.sdk.login error 1.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;An SSL error has occurred and a secure connection to the server cannot be made.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;The operation couldn’t be completed. (kCFErrorDomainCFNetwork error -1200.)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Nov 2020 03:34:15 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-WEB-API-from-iOS-App-Can-t-Authenticate/m-p/5071409#M1535</guid>
      <dc:creator>josephtclegg</dc:creator>
      <dc:date>2020-11-14T03:34:15Z</dc:date>
    </item>
  </channel>
</rss>

