Google 在 cordova 上使用 admob 同意 SDK

Google consent SDK with admob on cordova

我使用 React 和 Cordova 开发了一个应用程序。我计划使用 admob 投放广告。所以我从 npm 获得了一个 admob 插件,但我找不到任何东西可以让我使用 google consent SDK 和 cordova。

我想遵守 GDPR。执行此操作的最佳方法是什么?

https://github.com/dragonbane0/cordova-plugin-google-consent worked for me, but be aware that you cannot use it on cordova 9 at present because the IOS code uses requireCordovaModule. In addition since dependencies of the consent plugin use the Android X library format you may experience "D8: Program type already present:" errors. If this occurs then the solution is to use https://github.com/dpa99c/cordova-plugin-androidx & https://github.com/dpa99c/cordova-plugin-androidx-adapter