The latest 14.5 bag was rejected due to privacy
Guideline 5.1.2 – Legal – Privacy – Data Use and Sharing
Apple offers two solutions. The first is to directly configure privacy in the account
Help.apple.com/app-store-c…
We use the second way to add info in the APP to solve the problem
< key > NSUserTrackingUsageDescription < / key > < string > the identifier will be used to deliver customized advertising < / string >Copy the code
Gets the identifier code
#import <AppTrackingTransparency/AppTrackingTransparency.h>
#import <AdSupport/AdSupport.h>
- (void)fetchIDFA {
[ATTrackingManager requestTrackingAuthorizationWithCompletionHandler:^(ATTrackingManagerAuthorizationStatus status) {
}];
}
Copy the code