AnalyticsSessionInfo.sessionFirstRun

public static bool sessionFirstRun;

Description

Indicates whether the current session is the first session since the user installed the game or application.

The property value is true for the first session and false for the subsequent sessions. If the user reinstalls the game or application, the sessionFirstRun status resets.

Note: On macOS, the session information is stored in the user's defaults system using NSUserDefaults class. The operating system retains this information even when the application is uninstalled or reinstalled. Use PlayerPrefs.DeleteKey method to delete this information manually. For example, PlayerPrefs.DeleteKey("unity.player_sessionid");


Did you find this page useful? Please give it a rating: