Open hooliapps opened 2 months ago
@hooliapps
I made a little example, like this.
https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/example/ump_att.html
Thanks a lot i will try.
Hello.
I did tests.
At first execution, both forms ATT/CMP are displayed (ok), but on.sdkInitialization event is not launched. I stop/restart app, then on.sdkInitialization is correctly launched.
Best regards
if (status === 0) {
} else if (status === 1) {
} else if (status === 2) {
} else if (status === 3) {
}
Where can i put this code please ?
I tried to add any code after the initialize part (even with await) then code is launched immediatly when show is displayed, so before user make his choice (click buttons/close forms).
// Here UMP status // Whatever the status is install admob sdk
if (status === 0) {
} else if (status === 1) {
} else if (status === 2) {
} else if (status === 3) {
}
https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/example/ump_att.html
Hello
I'm migrating from Cordova (ios) admob plus plugin to this plugin.
I'm trying to use the following code, but i have some problems.
Event "on.get.consent.status" seems not launched, so i cannot launch "Prepare ads" after consent is given.
ATT iOS 14 Message is displayed correctly (ok)
I use Google UMP Form
// 1. Init global settings cordova.plugins.emiAdmobPlugin.globalSettings(A.admobConfigGlobalSettings);
// 2. Init targeting cordova.plugins.emiAdmobPlugin.targeting(A.admobConfigTargeting);
// 3 Create Event SDK Init document.addEventListener('on.sdkInitialization', function() {
});
// 4. Create Event On TCString expired : Force Consent GDPR document.addEventListener('on.TCString.expired', function() { cordova.plugins.emiAdmobPlugin.consentReset(); });
// 5. When i get consent status --> Prepare Ads document.addEventListener('on.get.consent.status', function() { A.startSdks(); });
// 6. Init Admob plugin cordova.plugins.emiAdmobPlugin.initialize();
Best regards