Phaser API Documentation

  Version: 
createShortcut()

Description:

Prompts the user to create a shortcut to the game if they are eligible to. Can only be called once per session.

It makes an async call to the API, so the result isn't available immediately.

If the user choose to create a shortcut this plugin will emit the shortcutcreated event.

If they cannot, i.e. it's not in the list of supported APIs, or the request was rejected, it will emit a shortcutcreatedfail event instead.

Returns:
Description:

This Facebook Instant Games Plugin instance.

Since: 3.13.0