Additional configuration instructions for using Pangle SDK
Pangle SDK removed COPPA and CCPA settings in v7.1+ and unified PAConsent. TopOn SDK added corresponding APIs in v6.4.56 and above to facilitate your own settings according to the situation.
Note: If not set, the default state of Pangle SDK is Consent.
#import <AnyThinkPangleAdapter/AnyThinkPangleAdapter.h>
typedef NS_ENUM(NSInteger, ATPAGPAConsentType) {
ATPAGPAConsentTypeConsent = 0, ///< User has granted the consent
ATPAGPAConsentTypeNoConsent = 1, ///< User doesn't grant consent
};
+ (void)setPAGPAConsentType:(ATPAGPAConsentType)consentType;
eg.
//Enable fill Ad
[ATPangleConfigure setPAGPAConsentType:ATPAGPAConsentTypeConsent];
//Disable fill Ad
[ATPangleConfigure setPAGPAConsentType:ATPAGPAConsentTypeNoConsent];
● GDPR
The General Data Protection Regulation (GDPR) issued by the European Union came into effect on May 25, 2018. To support the GDPR agreement, we have updated our privacy policy . Developers are requested to learn about the relevant content of the Privacy Policy from our official website . At the same time, in order to protect the data privacy security of users, TopOn iOS SDK has added a data protection function. Please refer to the following content to learn how to configure it.
1. Use the pop-up window provided by TopOn
- Present mode, please do not present your window at this time
- If the ViewController parameter is not passed in, it will be automatically obtained and displayed by default.
- Before using the following code , please remove the ATT application code in other locations. Please do not
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
because Apple requires that
applicationDidBecomeActive
Then call ATT to apply.
The above effect access code example is as follows:
#import <AnyThinkSDK/ATAPI.h>
#import <AppTrackingTransparency/AppTrackingTransparency.h>
- (void)initFlow {
[[ATAPI sharedInstance] showGDPRConsentDialogInViewController:[UIApplication sharedApplication].keyWindow.rootViewController dismissalCallback:^{
if (([ATAPI sharedInstance].dataConsentSet == ATDataConsentSetUnknown && ([[NSUserDefaults standardUserDefaults] boolForKey:@"GDPR_First_Flag"] == YES))
|| [ATAPI sharedInstance].dataConsentSet == ATDataConsentSetPersonalized) {
if (@available(iOS 14, *)) {
[ATTrackingManager requestTrackingAuthorizationWithCompletionHandler:^(ATTrackingManagerAuthorizationStatus status) {
}];
}
}
//Init SDK
[[ATAPI sharedInstance] startWithAppID:kTakuAppID appKey:kTakuAppKey error:nil];
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"GDPR_First_Flag"];
}];
//......Other code
}
2. Use your own logic to let the user choose and notify TopOn of the DataConsent level
After the user selects, the GDPR level is set for TopOn through the following method, where the consentString parameter is reserved for Flurry. We provide three levels of data protection:
typedef NS_ENUM(NSInteger, ATDataConsentSet) {
ATDataConsentSetUnknown = 0,
ATDataConsentSetPersonalized = 1,
ATDataConsentSetNonpersonalized = 2
};
[[ATAPI sharedInstance] setDataConsentSet:ATDataConsentSetUnknown consentString:[NSDictionary dictionary]];
● CCPA
The California Consumer Privacy Act (CCPA) provides California consumers with a variety of privacy rights. Businesses covered by the CCPA will have multiple obligations to those consumers, including disclosures, consumer rights similar to the EU General Data Protection Regulation (GDPR), the right to “opt-out” of certain data transfers, and the right to “opt-in” for requests from minors.
Please go to the TopOn dashboard - Application page and click the " Edit " button to set up CCPA, as shown below:
● COPPA
The Children's Online Privacy Protection Act (COPPA) in the United States targets the online collection of personal information from children under the age of 13. According to the COPPA FAQ , developers are responsible for determining whether their apps are targeted at children under the age of 13 and considering factors including, but not limited to, "the app's subject matter, visual content, use of animated characters or child-oriented activities and incentives, music or other audio content, age of models, presence of child celebrities or celebrities that appeal to children, language or other features of the website or online service, and whether advertisements promoted or appearing on the website or online service are targeted at children."
1. Go to the TopOn dashboard - Application page and click the " Edit " button to set up COPPA, as shown below:
2. Before initializing TopOn SDK, pass it in the following way
- ⚠️When the incoming user is under 13 years old, COPPA regulations will be complied with.
- The logic for obtaining the user's age is implemented by your own application, such as a pop-up window.
[ATAPI sharedInstance].customData = @{kATCustomDataAgeKey:@"User's Age"};