<?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 [AAOS] Deeplinking on Android Automotive not working in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/AAOS-Deeplinking-on-Android-Automotive-not-working/m-p/6330146#M15004</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Android (1024p landscape) API 32 Emulator&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Android Automotive 12L Sv2&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am implementing the Spotify API on an Android Automotive application and am currently trying to deeplink to the native Android automotive Spotify application following the documentation at&amp;nbsp;&lt;A href="https://developer.spotify.com/documentation/android/tutorials/content-linking" target="_blank" rel="noopener"&gt;Android Content Linking&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following snippet returns true, running my app on an AAOS emulator with Spotify installed:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;PackageManager pm = getPackageManager();
boolean isSpotifyInstalled;
try {
    pm.getPackageInfo("com.spotify.music", 0);
    isSpotifyInstalled = true;
} catch (PackageManager.NameNotFoundException e) {
    isSpotifyInstalled = false;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore, I try to deeplink content as in example below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;final String spotifyContent = "https://open.spotify.com/album/0sNOF9WDwhWunNAHPD3Baj";

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(spotifyContent));
intent.setPackage("com.spotify.music");
startActivity(intent);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This seems to not work on Android Automotive, opening the same project on a regular Android tablet emulator with the mobile Spotify app installed and opening the deeplink works without issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore my question: Is Deeplinking supported on the android automotive application? If yes, what am I missing here?&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2024 07:45:06 GMT</pubDate>
    <dc:creator>icecreamdip</dc:creator>
    <dc:date>2024-09-10T07:45:06Z</dc:date>
    <item>
      <title>[AAOS] Deeplinking on Android Automotive not working</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/AAOS-Deeplinking-on-Android-Automotive-not-working/m-p/6330146#M15004</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Android (1024p landscape) API 32 Emulator&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Android Automotive 12L Sv2&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am implementing the Spotify API on an Android Automotive application and am currently trying to deeplink to the native Android automotive Spotify application following the documentation at&amp;nbsp;&lt;A href="https://developer.spotify.com/documentation/android/tutorials/content-linking" target="_blank" rel="noopener"&gt;Android Content Linking&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following snippet returns true, running my app on an AAOS emulator with Spotify installed:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;PackageManager pm = getPackageManager();
boolean isSpotifyInstalled;
try {
    pm.getPackageInfo("com.spotify.music", 0);
    isSpotifyInstalled = true;
} catch (PackageManager.NameNotFoundException e) {
    isSpotifyInstalled = false;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore, I try to deeplink content as in example below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;final String spotifyContent = "https://open.spotify.com/album/0sNOF9WDwhWunNAHPD3Baj";

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(spotifyContent));
intent.setPackage("com.spotify.music");
startActivity(intent);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This seems to not work on Android Automotive, opening the same project on a regular Android tablet emulator with the mobile Spotify app installed and opening the deeplink works without issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore my question: Is Deeplinking supported on the android automotive application? If yes, what am I missing here?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 07:45:06 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/AAOS-Deeplinking-on-Android-Automotive-not-working/m-p/6330146#M15004</guid>
      <dc:creator>icecreamdip</dc:creator>
      <dc:date>2024-09-10T07:45:06Z</dc:date>
    </item>
  </channel>
</rss>

