Stay organized with collections
Save and categorize content based on your preferences.
The Play Games services may automatically add app shortcuts, for
example to allow users to quickly choose the Play Games Services profile to use.
The app shortcuts could be added or removed based on the number of the accounts
on the device and the game usage.
Available shortcuts
Profile switcher: shortcut for players to switch between different Play
Games Profiles. See How to switch Play Games profiles, for
corresponding Help Center article.
Manage the Play Games services populated app shortcuts
In case your game actively uses the app shortcuts, you could limit the number of
app shortcuts populated by the Play Games services. For that add a
meta-data
element to any "android.intent.category.LAUNCHER" activity declaration,
setting the following:
android:name to "com.google.android.gms.games.APP_SHORTCUTS_MAX_NUMBER"
android:value to the maximum number of the app shortcuts slots that can be
used by the Play Games services.
Example
In this example, we show how to limit the maximum number of the app shortcuts
slots that the Play Games services can use to two. For our example, we
initially would have an
app manifest
that looks like the following:
That's it. Now the maximum number of the app shortcuts slots that the Play Games
services can use is limited to two.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-01-30 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-30 UTC."],[],[],null,["# App shortcuts\n\nThe Play Games services may automatically add [app shortcuts](https://developer.android.com/develop/ui/views/launch/shortcuts), for\nexample to allow users to quickly choose the Play Games Services profile to use.\nThe app shortcuts could be added or removed based on the number of the accounts\non the device and the game usage.\n\nAvailable shortcuts\n-------------------\n\n**Profile switcher** : shortcut for players to switch between different Play\nGames Profiles. See [How to switch Play Games profiles](https://support.google.com/googleplay/answer/14754238), for\ncorresponding Help Center article.\n\nManage the Play Games services populated app shortcuts\n------------------------------------------------------\n\nIn case your game actively uses the app shortcuts, you could limit the number of\napp shortcuts populated by the Play Games services. For that add a\n[meta-data](https://developer.android.com/guide/topics/manifest/meta-data-element)\nelement to any `\"android.intent.category.LAUNCHER\"` activity declaration,\nsetting the following:\n\n- `android:name` to `\"com.google.android.gms.games.APP_SHORTCUTS_MAX_NUMBER\"`\n- `android:value` to the maximum number of the app shortcuts slots that can be used by the Play Games services.\n\n### Example\n\nIn this example, we show how to limit the maximum number of the app shortcuts\nslots that the Play Games services can use to **two** . For our example, we\ninitially would have an\n[app manifest](https://developer.android.com/guide/topics/manifest/manifest-intro)\nthat looks like the following: \n\n \u003cmanifest ... \u003e\n \u003capplication ... \u003e\n \u003cactivity android:name=\".ExampleActivity\" \u003e\n \u003cintent-filter\u003e\n \u003caction android:name=\"android.intent.action.MAIN\" /\u003e\n \u003ccategory android:name=\"android.intent.category.LAUNCHER\" /\u003e\n \u003c/intent-filter\u003e\n \u003c/activity \u003e\n ...\n \u003c/application \u003e\n ...\n \u003c/manifest \u003e\n\nAnd to apply the limits the app manifest should be updated to the following: \n\n \u003cmanifest ... \u003e\n \u003capplication ... \u003e\n \u003cactivity android:name=\".ExampleActivity\" \u003e\n \u003cintent-filter\u003e\n \u003caction android:name=\"android.intent.action.MAIN\" /\u003e\n \u003ccategory android:name=\"android.intent.category.LAUNCHER\" /\u003e\n \u003c/intent-filter\u003e\n \u003cmeta-data\n android:name=\"com.google.android.gms.games.APP_SHORTCUTS_MAX_NUMBER\"\n android:value=\"2\" /\u003e\n \u003c/activity \u003e\n ...\n \u003c/application \u003e\n ...\n \u003c/manifest \u003e\n\nThat's it. Now the maximum number of the app shortcuts slots that the Play Games\nservices can use is limited to **two**."]]