title: Android app icon shorcut not launching activity
body: <p>I'm trying to implement app icon shortcut on Android. I followed the <a href="https://developer.android.com/guide/topics/ui/shortcuts/creating-shortcuts#static" rel="nofollow noreferrer">documentation</a> but I'm having problem launching the app from the shortcut. Every time I click the app icon shortcut, nothing happens.
  Here's the code on my <code>AndroidManifest.xml</code> file:</p>
  <pre><code>&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
  xmlns:tools=&quot;http://schemas.android.com/tools&quot;
  package=&quot;com.package.myapp&quot;&gt;
  
  &lt;application
      android:name=&quot;.MyApp&quot;
      android:allowBackup=&quot;false&quot;
      android:icon=&quot;@mipmap/ic_launcher&quot;
      android:label=&quot;@string/app_name&quot;
      android:roundIcon=&quot;@mipmap/ic_launcher_round&quot;
      android:supportsRtl=&quot;true&quot;
      android:theme=&quot;@style/AppTheme.NoActionBar&quot;
      android:usesCleartextTraffic=&quot;${usesCleartextTraffic}&quot;
      tools:ignore=&quot;ExportedService,GoogleAppIndexingWarning,UnusedAttribute&quot;&gt;
  
      &lt;activity android:name=&quot;.MainActivity&quot;&gt;
          &lt;intent-filter&gt;
              &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;
  
              &lt;category android:name=&quot;android.intent.category.DEFAULT&quot; /&gt;
              &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;
          &lt;/intent-filter&gt;
  
          &lt;meta-data
              android:name=&quot;android.app.shortcuts&quot;
              android:resource=&quot;@xml/shortcuts&quot; /&gt;
      &lt;/activity&gt;
  
      ...
  
  &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>
  <p>Here's the <code>shortcuts.xml</code> file:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;shortcuts xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
  xmlns:tools=&quot;http://schemas.android.com/tools&quot;
  tools:ignore=&quot;UnusedAttribute&quot;&gt;
  
      &lt;shortcut
          android:enabled=&quot;true&quot;
          android:icon=&quot;@drawable/ic_send&quot;
          android:shortcutId=&quot;send_funds&quot;
          android:shortcutLongLabel=&quot;@string/LBL_SEND_FUNDS&quot;
          android:shortcutShortLabel=&quot;@string/BTN_SEND&quot;&gt;
  
          &lt;intent
              android:action=&quot;android.intent.action.VIEW&quot;
              android:targetClass=&quot;com.package.myapp.MainActivity&quot;
              android:targetPackage=&quot;com.package.myapp&quot; /&gt;
      &lt;/shortcut&gt;
  
  &lt;/shortcuts&gt;
  </code></pre>