dominik4142
dominik4142

Reputation: 576

Android static App Shortcut is not showing

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

Answers (2)

utkukutlu
utkukutlu

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

dominik4142
dominik4142

Reputation: 576

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

Upvotes: 9

Related Questions