Phaser API Documentation

  Version: 
getID()

Description:

Returns the unique identifier for the current game context. This represents a specific context that the game is being played in (for example, a particular messenger conversation or facebook post). The identifier will be null if game is being played in a solo context.

It is only populated if contextGetID is in the list of supported APIs.

Returns:
Description:

The context ID.

Type:
  • string
Since: 3.13.0