> For the complete documentation index, see [llms.txt](https://lionstudios.gitbook.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lionstudios.gitbook.io/readme/features/privacy-policy-update.md).

# Privacy Policy Update

## Using Privacy Policy Updates

The **Lion – Privacy Policy Update** package notifies existing players when an updated privacy policy is scheduled to take effect.

When required, the package automatically displays a popup at application startup, allowing players to review the updated policy before continuing.

<figure><img src="/files/1pfrcMJRgMCxtz78K2X4" alt="" width="305"><figcaption></figcaption></figure>

### Installation

Install **`Lion – Privacy Policy Update`** through the Unity Package Manager.

No additional setup is required for most games. The Lion Studios team manages the privacy policy configuration through Global Remote Config.

### Displaying the Privacy Policy Notice

The package automatically determines whether the privacy policy notice should be displayed.

The notice is shown when all of the following conditions are met:

* The current device date is on or after the configured privacy policy start date.
* The player installed the game before the configured start date.
* The player has not previously dismissed the notice.

New players who install the game on or after the policy start date do not need to see the update notice.

### Listening for the Notice Being Shown

Subscribe to `OnPrivacyPolicyShown` to be notified when the privacy policy popup is displayed.

```csharp
PrivacyPolicyUpdateManager.OnPrivacyPolicyShown += () =>
{
    Debug.Log("Privacy Policy is shown!");
};
```

### Listening for the Notice Being Dismissed

Subscribe to `OnPrivacyPolicyDismissed` to be notified when the player closes the popup.

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

### Identifying Returning Players (NOT ALWAYS REQUIRED)

Most games do not need to configure the player's returning-user status manually.

Use `PrivacyPolicyUpdateManager.SetReturningUser` only when a previously released version of the game did not include LionSDK. In this scenario, the package cannot automatically determine whether the player installed the game before the privacy policy update.

This method must be called before the Privacy Policy Update package initializes.

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

    PrivacyPolicyUpdateManager.SetReturningUser(isReturningUser);
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://lionstudios.gitbook.io/readme/features/privacy-policy-update.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
