Is this solution still valid for iOS 15?
I have a doubt about this line:
EDIT:
This code
Return IDFA Status: 0 on first app run, without showing dialog. After killing app and start app again IDFA dialog is shown.
This behavior is only on iOS 15. My app is declined as they cannot find App Tracking Transparency dialog on the first run.
Admob - prepare for ios14 warning email?
today i got an email from google that i need to prepare my apps for ios14. actually i am running ios14 beta5 and my apps run fine so what do we need to do now? https://developers.google.com/admob/ios/ios14
www.b4x.com
I have a doubt about this line:
B4X:
if (@available(iOS 14, *)) {
EDIT:
This code
B4X:
Dim no As NativeObject = Me
no.RunMethod("requestIDFA", Null)
Wait For GAD_TrackingAuthorization (Status As Int)
Log ("IDFA Status: " & Status)
#if OBJC
#import <AppTrackingTransparency/AppTrackingTransparency.h>
#import <AdSupport/AdSupport.h>
- (void)requestIDFA {
if (@available(iOS 14, *)) {
[ATTrackingManager requestTrackingAuthorizationWithCompletionHandler:^(ATTrackingManagerAuthorizationStatus status) {
[self.bi raiseUIEvent:nil event:@"gad_trackingauthorization:" params:@[@(status)]];
}];
} else {
[self.bi raiseUIEvent:nil event:@"gad_trackingauthorization:" params:@[@(3)]];
}
}
#End If
Return IDFA Status: 0 on first app run, without showing dialog. After killing app and start app again IDFA dialog is shown.
This behavior is only on iOS 15. My app is declined as they cannot find App Tracking Transparency dialog on the first run.
Last edited: