Reputation: 576
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?
Upvotes: 3
Views: 2907
Reputation: 440
Check this
Only main activities—activities that handle the Intent.ACTION_MAIN action and the Intent.CATEGORY_LAUNCHER category—can have shortcuts. If an app has multiple main activities, you need to define the set of shortcuts for each activity.
Upvotes: 0
Reputation: 576
Using reference (@string) as shortcutId
results in app shortcut silently not showing up.
Upvotes: 9