<?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 Re: [Android] SpotifyAppRemote doesn't call onConnected in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Android-SpotifyAppRemote-doesn-t-call-onConnected/m-p/6629060#M16500</link>
    <description>&lt;P&gt;Do you have any updates on this by any chance? I have the same issue...&lt;/P&gt;</description>
    <pubDate>Sat, 04 Jan 2025 15:54:18 GMT</pubDate>
    <dc:creator>artibarti</dc:creator>
    <dc:date>2025-01-04T15:54:18Z</dc:date>
    <item>
      <title>[Android] SpotifyAppRemote doesn't call onConnected</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Android-SpotifyAppRemote-doesn-t-call-onConnected/m-p/6434310#M15234</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Netherlands&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Oneplus 8T&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Android 14&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hi, I am trying to make a simple app that can scan a qr code and use the qr code info to start playing a song on Spotify in the background.&lt;BR /&gt;(I am a total android dev beginner btw).&lt;BR /&gt;I think the authorisation is working, because I don't get any errors related to that any more, but now I am receiving these errors:&lt;/P&gt;&lt;LI-SPOILER&gt;2024-10-13 15:46:42.992 8836-8836 System.out com.example.gwoonguess I trying to connect!&lt;BR /&gt;2024-10-13 15:46:42.997 8836-8836 Compatibil...geReporter com.example.gwoonguess D Compat change id reported: 247079863; UID 10514; state: ENABLED&lt;BR /&gt;2024-10-13 15:46:43.004 8836-8836 ViewRootImplExtImpl com.example.gwoonguess D MotionEvent MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=560.51855, y[0]=1395.582, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=746224337, downTime=746224283, deviceId=3, source=0x1002, displayId=0, eventId=39702375 } handled by client, just return&lt;BR /&gt;2024-10-13 15:46:43.035 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 952&lt;BR /&gt;2024-10-13 15:46:43.036 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.036 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.037 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.037 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.038 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.038 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.039 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.039 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.039 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 952&lt;BR /&gt;2024-10-13 15:46:43.039 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.040 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.040 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.040 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.041 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.041 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.041 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.041 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.042 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.042 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.043 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.043 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.043 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.043 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.044 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.044 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.044 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.044 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.045 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.045 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.046 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.046 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.047 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.047 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Info; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.047 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.048 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.048 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 952&lt;BR /&gt;2024-10-13 15:46:43.048 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.048 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.049 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.049 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.049 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.049 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.050 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 955&lt;BR /&gt;2024-10-13 15:46:43.050 8836-8878 mple.gwoonguess com.example.gwoonguess W Unable to resolve Lcom/spotify/protocol/types/Roles; annotation class 955&lt;BR /&gt;2024-10-13 15:46:44.702 8836-8884 ProfileInstaller com.example.gwoonguess D Installing profile for com.example.gwoonguess&lt;/LI-SPOILER&gt;&lt;P&gt;(The issue here is that it is not printing the "connected Yay!")&lt;BR /&gt;Does someone maybe know what I am missing here / what I am doing wrong? Thanks!&lt;BR /&gt;&lt;BR /&gt;Setup code:&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;private val &lt;/SPAN&gt;&lt;SPAN&gt;clientId &lt;/SPAN&gt;= &lt;SPAN&gt;"id"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;private val &lt;/SPAN&gt;&lt;SPAN&gt;redirectUri &lt;/SPAN&gt;= &lt;SPAN&gt;"http://localhost"&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;private val &lt;/SPAN&gt;&lt;SPAN&gt;connectionParams &lt;/SPAN&gt;= ConnectionParams.Builder(&lt;SPAN&gt;clientId&lt;/SPAN&gt;)&lt;BR /&gt;    .setRedirectUri(&lt;SPAN&gt;redirectUri&lt;/SPAN&gt;)&lt;BR /&gt;    .showAuthView(&lt;SPAN&gt;true&lt;/SPAN&gt;)&lt;BR /&gt;    .build()&lt;BR /&gt;&lt;SPAN&gt;private var &lt;/SPAN&gt;&lt;SPAN&gt;spotifyAppRemote&lt;/SPAN&gt;: SpotifyAppRemote? = &lt;SPAN&gt;null&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;On debug button press code ("scanning the qr code"):&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;println&lt;/SPAN&gt;(&lt;SPAN&gt;"trying to connect!"&lt;/SPAN&gt;)&lt;BR /&gt;SpotifyAppRemote.connect(&lt;SPAN&gt;this&lt;/SPAN&gt;, &lt;SPAN&gt;connectionParams&lt;/SPAN&gt;, &lt;SPAN&gt;object &lt;/SPAN&gt;: Connector.ConnectionListener {&lt;BR /&gt;    &lt;SPAN&gt;override fun &lt;/SPAN&gt;&lt;SPAN&gt;onConnected&lt;/SPAN&gt;(appRemote: SpotifyAppRemote) {&lt;BR /&gt;        &lt;SPAN&gt;spotifyAppRemote &lt;/SPAN&gt;= appRemote&lt;BR /&gt;        &lt;SPAN&gt;println&lt;/SPAN&gt;(&lt;SPAN&gt;"Connected! Yay!"&lt;/SPAN&gt;)&lt;BR /&gt;        &lt;SPAN&gt;// Now you can start interacting with App Remote&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;spotifyAppRemote&lt;/SPAN&gt;!!.&lt;SPAN&gt;playerApi&lt;/SPAN&gt;.play(&lt;SPAN&gt;"spotify:track:5a1iz510sv2W9Dt1MvFd5R"&lt;/SPAN&gt;)&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;override fun &lt;/SPAN&gt;&lt;SPAN&gt;onFailure&lt;/SPAN&gt;(throwable: Throwable) {&lt;BR /&gt;        &lt;SPAN&gt;println&lt;/SPAN&gt;(throwable.&lt;SPAN&gt;message&lt;/SPAN&gt;)&lt;BR /&gt;        &lt;SPAN&gt;// Something went wrong when attempting to connect! Handle errors here&lt;BR /&gt;&lt;/SPAN&gt;    }&lt;BR /&gt;})&lt;/PRE&gt;&lt;/DIV&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2024 13:57:09 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Android-SpotifyAppRemote-doesn-t-call-onConnected/m-p/6434310#M15234</guid>
      <dc:creator>gwoonryan</dc:creator>
      <dc:date>2024-10-13T13:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: [Android] SpotifyAppRemote doesn't call onConnected</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Android-SpotifyAppRemote-doesn-t-call-onConnected/m-p/6629060#M16500</link>
      <description>&lt;P&gt;Do you have any updates on this by any chance? I have the same issue...&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jan 2025 15:54:18 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Android-SpotifyAppRemote-doesn-t-call-onConnected/m-p/6629060#M16500</guid>
      <dc:creator>artibarti</dc:creator>
      <dc:date>2025-01-04T15:54:18Z</dc:date>
    </item>
  </channel>
</rss>

