TPStashEvent.LoginApp

public int LoginApp(
    string player_uuid,
    [string app_version = null]
);

Description

LoginApp collects the user’s app login data. It needs to be called when the user logs into the game before all other TPStashEvent methods are called. It is used for the analysis of almost every persona.

It returns 1 for success and -1 for failure. If -1 is returned, you can see the following message in the Unity editor console in TentuPlay debug mode:

TPError||ERROR inserting table_name: exception_error_message

Parameters

Name Description Required

player_uuid

Player’s unique ID (not a character’s ID) such as Steam user ID and Google Play user ID

Required

app_version

The version of the game client when the player logs in

Optional