[BUG]Rewarded Ads not Loading on iOS
See original GitHub issueDescribe the bug Test ads not displaying when user selects “Ask App Not To Track” on iOS 14 devices.
To Reproduce When promoted to allow for tracking, if the user selects the do not track button then rewarded ads do not load.
Expected behavior
The ad does not buffer and the _on_MobileAds_rewarded_ad_failed_to_load signal does not get emitted
Screenshots If applicable, add screenshots to help explain your problem. Console Output
2021-06-21 08:29:09.989764-0400 Captain Skyrunner[372:9702] Calling load_rewarded
2021-06-21 08:29:09.989932-0400 Captain Skyrunner[372:9702] rewarded will load with the id
2021-06-21 08:29:09.989984-0400 Captain Skyrunner[372:9702] [My Admob App ID was output here]
2021-06-21 08:29:09.994954-0400 Captain Skyrunner[372:9702] <Google> To get test ads on this device, set: GADMobileAds.sharedInstance.requestConfiguration.testDeviceIdentifiers = @[ @"e484e6d6f7ca8ecd79bb89626c9b8dff" ];
2021-06-21 08:29:09.995798-0400 Captain Skyrunner[372:9702] <Google> Note that test device identifiers may be reset when uninstalling and reinstalling the application.
2021-06-21 08:29:10.052532-0400 Captain Skyrunner[372:10127] [connection] nw_endpoint_handler_set_adaptive_read_handler [C3.1.1 172.217.1.14:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] unregister notification for read_timeout failed
2021-06-21 08:29:10.052604-0400 Captain Skyrunner[372:10127] [connection] nw_endpoint_handler_set_adaptive_write_handler [C3.1.1 172.217.1.14:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] unregister notification for write_timeout failed
2021-06-21 08:29:10.156482-0400 Captain Skyrunner[372:9906] [connection] nw_endpoint_handler_set_adaptive_read_handler [C4.1.1 172.217.164.194:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] unregister notification for read_timeout failed
2021-06-21 08:29:10.156530-0400 Captain Skyrunner[372:9906] [connection] nw_endpoint_handler_set_adaptive_write_handler [C4.1.1 172.217.164.194:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] unregister notification for write_timeout failed
2021-06-21 08:29:10.368262-0400 Captain Skyrunner[372:9702] Rewarded ad failed to load with error: Request Error: No ad to show.
2021-06-21 08:29:10.368406-0400 Captain Skyrunner[372:9702] error while creating reward
Smartphone (please complete the following information):
- Device: iPhone SE 2nd generation
- OS: iOS 14.6
Additional context
Issue Analytics
- State:
- Created 2 years ago
- Comments:33 (14 by maintainers)
Ok, I have done a little bit more testing. When I update the info.plst to have my GADApplicationIdentifier from Admob, and update the rewarded Ad ID inside of the plugin configuration screen
Rewards Ads are not loading when my Phone is on Wifi, they only load when I am on LTE. Rewarded Ads are also not loading when I select the app to not track me. The console always says “ad failed to load, no ad to serve”.
If I leave info.plst alone, and leave the Ad IDs at the default values the test ads seem to load fine regardless of my responses. I am not sure what the exact nature of the problem is, if its is a problem with the plugin or if there are actually no ads to serve.
Ok, so this has been a me problem the while time.
Excellent, thank you for that bit of missing information.
Your plugin is fantastic then 😄 and I have been having no issues.