You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HI,
I guess this is not particularly an issue with the package, but I can't find the answer anywhere.
I am trying to invoke Admob.requestTrackingAuthorization() to satisfy Apples approval process and I have tried a few different approaches.
I wrapped in a function and call the function within the Builder widget: static Future checkPermissions() async { if (Platform.isIOS) { // Run this before displaying any ad. print('IOS Detected'); await Admob.requestTrackingAuthorization(); // return Admob.requestTrackingAuthorization(); //this didn't work either } else if (Platform.isAndroid) { print('Android Operating System Detected'); } }
I'm getting the print object but not getting a dialog on iOS.
I have tried this in main.dart, home_page.dart and now have it checked before any ad loads.
I'm not sure if Apple will accept the build if I just remove the tracking key and information...
Any help is greatly appreciated.
The text was updated successfully, but these errors were encountered:
HI,
I guess this is not particularly an issue with the package, but I can't find the answer anywhere.
I am trying to invoke Admob.requestTrackingAuthorization() to satisfy Apples approval process and I have tried a few different approaches.
I wrapped in a function and call the function within the Builder widget:
static Future checkPermissions() async { if (Platform.isIOS) { // Run this before displaying any ad. print('IOS Detected'); await Admob.requestTrackingAuthorization(); // return Admob.requestTrackingAuthorization(); //this didn't work either } else if (Platform.isAndroid) { print('Android Operating System Detected'); } }
I'm getting the print object but not getting a dialog on iOS.
I have tried this in main.dart, home_page.dart and now have it checked before any ad loads.
I'm not sure if Apple will accept the build if I just remove the tracking key and information...
Any help is greatly appreciated.
The text was updated successfully, but these errors were encountered: