Privacy Policy Update

The Privacy Policy Update package manages the notification requirements for Privacy Policy changes across all studios. It ensures existing users are informed ahead of any new policy taking effect, displaying a popup at game startup so players can review the updated policy.


Implementation

  • Install the Lion - Privacy Policy Update package from the Unity package manager.

  • The package will automatically determine when its time to show the popup. The requirements on whether to show it or not are configured from the Global remote config handled by the Lion Studios team.

  • Criteria of whether the popup will be shown or not

    • Device date is on or after the privacy policy start date defined in Remote Config.

    • The user must have installed the app before the privacy policy start date defined in Remote Config (i.e. they are an existing user who hasn't seen the updated policy)

    • The notice must not have been previously dismissed by the user

Callbacks

  • OnPrivacyPolicyShown - Fired when privacy policy is shown

PrivacyPolicyUpdateManager.OnPrivacyPolicyShown += () =>
{
    Debug.Log("Privacy Policy is shown!");
};
  • OnPrivacyPolicyDismissed - Fired when privacy policy is closed by the user

PrivacyPolicyUpdateManager.OnPrivacyPolicyDismissed += () =>
{
    Debug.Log("Privacy Policy dismissed!");
};

Public Methods SetReturningUser(bool isReturningUser) (NOT ALWAYS REQUIRED)

If your game's previously released version did not have LionSDK installed, you must manually specify whether the current user is new or returning.

  • Call SetReturningUser() in a RuntimeInitializeOnLoadMethod with BeforeSceneLoad to ensure it is invoked before the PrivacyPolicy package initializes

Example:

[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
private static void InitializeReturningUserState()
{
    bool isReturningUser = PlayerPrefs.HasKey("TotalSessions") || 
                           PlayerPrefs.HasKey("PlayerLevel") ||
                           PlayerPrefs.HasKey("LastLoginDate");

    PrivacyPolicyUpdateManager.SetReturningUser(isReturningUser);
}

Last updated

Was this helpful?