admob
admob copied to clipboard
[bug] prepareRewardVideoAd() return empty on iOS
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 Oh, thanks. You are right!! I will fix this!