Since May 25, 2018, the European Union's General Data Protection Regulation has officially taken 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 in the SDK. Please check the following configuration and complete the SDK integration.
The recommended integration process for developers is as follows:
Call the TopOn SDK's showGDPRAuth method (let the user set the GDPR level).
Initialize the SDK.
GDPR Setup Process
Use the following code snippet to set up GDPR:
// Determine whether the user is in the EU region
ATSDKAPI.getUserLocation(new GetLocationListener());
// Developers releasing in the EU region must use the following authorization code to ask users whether they agree to the collection of privacy 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();
}
}
}
Display as shown:

Important Note:
If you are integrating on the iOS platform and your app also obtains the App Tracking Transparency authorization dialog, we strongly recommend referring to Recommended Process for Simultaneously Obtaining App Tracking Transparency Authorization Dialog and GDPR Dialog; otherwise, there is a risk of the app review being rejected!