Open basvdijk opened 10 months ago
@rdlabo any update on this? In the latest release still nothing happens when calling await AdMob.showConsentForm();
in iOS in order to change an earlier set preference. In Android there is no issue.
I do not really use iOS but in android you first HAVE to get the consent info.
If you reset the consent. Then you have to call get consent before calling show form.
(sorry for the formating , I am on my phone)
@distante Thanks for your reply. The first consent works like a charm on both iOS and Android. However if a user wants to change their consent preferences I can call await AdMob.showConsentForm();
again on Android and the consent popup is shown. On iOS I see that Capacitor requests the consent popup, but this function returns immediately without showing the popup.
⚡️ TO JS {"isConsentFormAvailable":true,"status":"OBTAINED"}
⚡️ To Native -> AdMob showConsentForm 19231150
⚡️ TO JS {"status":"OBTAINED"}
I'm seeing the same thing on iOS.
The native SDK documentation recommends calling showPrivacyOptionsForm()
on Android and presentPrivacyOptionsFormFromViewController()
on iOS when a user needs to update consent.
README says to use resetConsentInfo()
but that calls reset()
and the SDK says that's only for debugging.
@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
Ask consent on iOS via the code in the README.MD:
Adding this part did not make difference:
To Reproduce
Expected behavior
Smartphone (please complete the following information):
Additional info This article https://developer.apple.com/forums/thread/709919 says you have to turn on these capabilities in your app:
This did not make a difference