admob-plus / admob-plus

Trustable AdMob Plugin for Cordova, Capacitor, Ionic, React Native
https://admob-plus.github.io
MIT License
368 stars 149 forks source link

Interstitial not loading if "allow apps to request to track" is disabled on iOS 14 #193

Closed rastafan closed 3 years ago

rastafan commented 4 years ago

Is this a bug report?

Yes

Environment

Ionic 5 iOS 14

Steps to Reproduce

  1. on iOS device (tested on iOS 14) go to settings->privacy->tracking and turn OFF "allow apps to request to track"
  2. try to load and show interstitial ad in your app using admob-plus

Expected Behavior

Interstitial loads and get shown on screen, as happens with the "allow apps to request to track" enabled.

Actual Behavior

Interstitial starts the load procedure (tested debugging the swift code) but the Promise is not resolved nor rejected. Therefore, the interstitial is never considered loaded.

Everything works fine in Android and if the beforementioned setting is turned ON. Debugging the Swift code of AMSPlugin.swift, the interstitial_load function is fired and seems to get to the end (where it calls the cordova callback), but the callback (in the form of a "promise resolve" in my case, since i'm using ionic 5 and typescript) is never called.

Any help is appreciated. Thank you.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.