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.
It is recommended that developers integrate the process as follows
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)
2. Determine whether the Dataconsent of TopOn SDK is Unknown
4. Initialize 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