Environment
Plugin version: 7.0.3 (latest stable)
Ionic/Capacitor version: @ionic/angular 8.7.2 - @capacitor/android : 7.4.2
Platform: Android
Device: Xiaomi 2312DRA50G (Android 15)
Build type: Development (app not yet published to store)
Issue Description
Banner ads are not displaying when testing on a real Android device. The AdMob plugin initializes successfully, but banner ad requests fail with certificate validation errors.
AdMob Console
-
App configured in AdMob console
-
AdMob App ID properly set in android/app/src/main/AndroidManifest.xml
-
Package name not yet added to console (app not published to store)
Error Logs
The following errors appear in the device logs when attempting to load ads:
AdMob.prepareInterstitial (#71444392)
main.b8aa90570c80127f.js:1 ERROR L: Unable to obtain a JavascriptEngine.
at returnResult (<anonymous>:947:32)
at win.androidBridge.onmessage (<anonymous>:922:21)
This is a simple proof of concept (POC) built with Ionic. It features a single page containing three buttons: one to initialize AdMob, one to create a standard banner ad, and one to display an interstitial ad.
Any guidance on resolving this certificate validation issue would be greatly appreciated!