admob icon indicating copy to clipboard operation
admob copied to clipboard

[bug] prepareRewardVideoAd() return empty on iOS

Open kyoz opened this issue 3 years ago • 1 comments

Describe the bug

prepareRewardVideoAd() function is seem inconsistent on android and ios.

Take a look as my function:

const options: RewardAdOptions = {
    adId: [YOUR_AD_ID],
    isTesting: true
};

AdMob.prepareRewardVideoAd(options).then(async (res: AdLoadInfo) => {
  if (res?.adUnitId) {
    await AdMob.showRewardVideoAd();
  }
});
...

On android, it return adUnitId, so i'v used it to check (just for sure). But in iOS, it just return empty.

LMFAO, it take me a day to recognize that it's not my fail on setup, although it return empty on iOS but the reward as has been loaded successfully :cry:

To Reproduce

Use the code as above

Expected behavior Consistent response between iOS and Android

Desktop (please complete the following information):

  • OS: Mac mini M1
  • @capacitor/app: 1.1.1
  • @capacitor/core": 3.4.3
  • @capacitor/android: 3.4.1
  • @capacitor/ios: 3.4.3

Smartphone (please complete the following information):

  • Device: iPhone 11 Pro Max
  • OS: iOS 15.4

kyoz avatar Apr 24 '22 18:04 kyoz

@kyoz Oh, thanks. You are right!! I will fix this!

rdlabo avatar Jul 04 '22 09:07 rdlabo