Add/Update/Remove Shortcut Policy
Goal
Update shortcuts based on your app state (progression, entitlement, season, user preferences).
Actions Used
AppShortcutsAddShortcutAppShortcutsRemoveShortcutAppShortcutsGetAddShortcutError(optional)AppShortcutsGetRemoveShortcutError(optional)
Variables
shortcutIdsToKeep(String list/array you maintain)shortcutIdToRemove(String)
FSM Steps
Decide your set: build
shortcutIdsToKeepin your own logic (there is no “get current shortcuts list” action/API exposed here).Add or update: call
AppShortcutsAddShortcutfor each ID you want available right now.Remove outdated: when you know an ID should be removed (e.g., expired event), call
AppShortcutsRemoveShortcut(shortcutIdToRemove).
Failure Handling
Add failure →
AppShortcutsGetAddShortcutErrorRemove failure →
AppShortcutsGetRemoveShortcutError
Notes
Adding with the same
shortcutIdupdates/replaces the existing shortcut.Apply policy changes during safe moments (main menu, after a level, etc.).
Last updated
Was this helpful?