goal c – How you can present AppTrackingManager pop-up on iOS 15.1?

0
10


I’m attempting to implement pop-up for apptracking in iOS 15.1 as they’ve rejected my utility.
However pop-up isn’t showing in my gadget and simulator as effectively.

  1. Added AppTransparencyFramework in Framework , Libraries and Embedded content material [General Tab].
  2. Additionally made it non-obligatory in [Build phases]
  3. Imported Library in OEXAppDelegate.h file
  4. Carried out following code in OEXAppDelegate.m file
- (void)requestIDFA {
   if (@obtainable(iOS 14, *)) {
     [ATTrackingManager requestTrackingAuthorizationWithCompletionHandler:^(ATTrackingManagerAuthorizationStatus status) {
       // Tracking authorization completed. Start loading ads here.
       // [self loadAd];
       printf("standing");
     }];
   } else {
     printf("standing");
     // Fallback on earlier variations
   }
}

LEAVE A REPLY

Please enter your comment!
Please enter your name here