Menu

Set up GDPR

TopOn SDK settings GDPR

Step1. General Data Protection Regulation GDPR

From May 25, 2018, the European Union's General Data Protection Regulation will officially come into effect. To protect the interests and privacy of our developers and your users, we have updated our "TopOn privacy Policy" . At the same time, we have added privacy permission settings to the SDK. Please check the following configuration and complete the SDK integration.

Step2. GDPR in the EU Configuration process suggestions

It is recommended that developers integrate the process as follows

2.1 Do not use the EU judgment API provided by TopOn SDK

1. APP After startup, the developer determines whether the user is in the EU (the developer implements the method of determining whether the user is in the EU by himself)

  • Not in the EU, skip to step 4
  • In the EU, next step

2. Determine whether the Dataconsent of TopOn SDK is Unknown

  • is Unknown (the GDPR level has not been set), next step
  • Not Unknown (GDPR level has been set), skip to step 4


4. Initialize SDK

2.2 Use the EU judgment API provided by TopOn SDK

Setting up the GDPR process

Use the following code snippet to set up GDPR:

//Determine whether you are in the EU
ATSDKAPI.getUserLocation(new GetLocationListener());


//Developers publishing in the EU need to use the following authorization code to ask users whether they agree to the collection of private data
private class GetLocationListener:ATGetUserLocationListener
{
    public void didGetUserLocation(int location)
    {
        Debug.Log("Developer callback didGetUserLocation(): " + location);
        if(location == ATSDKAPI.kATUserLocationInEU && ATSDKAPI.getGDPRLevel() == ATSDKAPI.UNKNOWN)
        {
            ATSDKAPI.showGDPRAuth();
        }
    }
}

Displayed as shown:

Important Note:

If you are accessing from the iOS platform, when your application also obtains App Tracking Transparency authorization pop-up window, we strongly recommend to refer to to obtain the App Tracking Transparency authorization pop-up window and GDPR pop-up window at the same time Window process suggestions, otherwise there is a risk of being rejected for arraignment! showGDPRAuth

Previous
Privacy Compliance Guide
Next
Integration Testing
Last modified: 2025-05-30Powered by