Android static App Shortcut is not showing

android, android-shortcut

Solution

Using reference (@string) as `shortcutId` results in app shortcut silently not showing up.

Problem

I created app shortcut as specified in https://developer.android.com/preview/shortcuts.html. Despite running on API 25 and Pixel launcher, app shortcut is not showing on launcher screen. What might be the cause?

Original source