capacitor-community / admob

Community plugin for using Google AdMob
MIT License
213 stars 66 forks source link

Reward Ad close button is behind Dynamic Island #197

Closed TomAldy closed 1 year ago

TomAldy commented 1 year ago

When I prepare and show a Reward Ad, it takes up the entire screen as expected, but the dynamic island is covering the close button for the Reward Ad, is there anyway around this?

To Reproduce Steps to reproduce the behavior:

  1. Run the following code after initialising AdMob plugin successfully.
AdMob.addListener(RewardAdPluginEvents.Loaded, (info) => {
      // Subscribe prepared rewardVideo
  });

  AdMob.addListener(RewardAdPluginEvents.Rewarded, (rewardItem) => {
      // Subscribe user rewarded
      console.log(rewardItem);
  });

  const options: RewardAdOptions = {
      adId: 'xx-xxxx-xxxxxxxxxxx',
      isTesting: true,
      margin: 25,
  };
  await AdMob.prepareRewardVideoAd(options);
  const rewardItem = await AdMob.showRewardVideoAd();
  console.log('awaited reward item', rewardItem);

Expected behavior Reward Ad should take Dynamic Island into account with padding maybe?

Screenshots

CleanShot 2022-11-09 at 18 18 58@2x

Smartphone (please complete the following information):

TomAldy commented 1 year ago

Just to leave a comment, after uninstalling and reinstalling the application, this issue has completely disappeared - closing this for now but if someone else gets this issue, it looks like it could be cache related.