Phaser API Documentation

  Version: 
saveSession(data)

Description:

Sets the data associated with the individual gameplay session for the current context.

This function should be called whenever the game would like to update the current session data.

This session data may be used to populate a variety of payloads, such as game play webhooks.

Parameters:

name type description
data object

An arbitrary data object, which must be less than or equal to 1000 characters when stringified.

Returns:
Description:

This Facebook Instant Games Plugin instance.

Since: 3.13.0