Closed basvdijk closed 10 months ago
@basvdijk fixed, and released v5.1.1. Please try! https://github.com/capacitor-community/admob/releases/tag/v5.1.1
@rdlabo Thansk! This seems to solve it. Unfortunately another iOS error popped up for which I've created a new bug report at https://github.com/capacitor-community/admob/issues/276
@basvdijk I had the same problem, and I solved it by first calling the reset
method:
try {
await AdMob.resetConsentInfo();
await AdMob.requestConsentInfo();
await AdMob.showConsentForm();
} catch (error) {
console.error('Error during consent process:', error);
} finally {}
Describe the bug
In 5.1.0 on iOS the plugin gives an error after giving consent. As a result no ads are shown. On Android there does not seem to be a problem.
The popup shows as intended
When pressing consent the error shows in the XCode console
after enabling debugging:
To Reproduce
Prompt for consent using the README.MD code:
Expected behavior Nothing, I expect that the consent is stored and ads are shown
Desktop (please complete the following information):
Smartphone (please complete the following information):