Shortcut / Favorites
Suggest to the player to create a shortcut or add the game to favorites.
Information
FREEThe method returns the success of the operation, boolean.
- JavaScript
- Unity
const success = await gp.app.addShortcut(); // true / false
public void AppShortcut()
{
    GP_App.AddShortcut(OnAddShortcut);
    Debug.Log("Send add shortcut request");
}
// success: true / false
private void OnAddShortcut(bool success)
{
    Debug.Log("Shortcut result: " + success);
}
Supported Platforms
 Yandex Games
Yandex Games VK Games
VK GamesPlatforms without support
 CrazyGames
CrazyGames GamePix
GamePix GameDistribution
GameDistribution GameMonetize
GameMonetize OK Games
OK Games SmartMarket
SmartMarket VK Play
VK Play WG Playground
WG Playground Kongregate
Kongregate PlayDeck
PlayDeck Google Play
Google Play Telegram
Telegram beeline
beeline Fotostrana
Fotostrana Y8
Y8 CoolMathGames
CoolMathGames Android (alternative stores)
Android (alternative stores) Web (custom site)
Web (custom site) Pikabu Games
Pikabu Games Partner's platforms
Partner's platformsCheck Support
FREE- JavaScript
- Unity
gp.app.canAddShortcut // true / false
// true / false
bool result = GP_App.CanAddShortcut();
Use this property to check if adding a shortcut is supported on the current platform. It also checks for the possibility of adding it again.
- JavaScript
- Unity
if (gp.app.canAddShortcut) {
    // can suggest adding to favorites
}
if (GP_App.CanAddShortcut()) {
    // can suggest adding to favorites
}
Stay in Touch
Other documents of this chapter available Here. To get started, welcome to the Tutorials chapter.
GamePush Community Telegram: @gs_community.
For your suggestions e-mail: official@gamepush.com
We Wish you Success!