cordova-plugin-admob-free
cordova-plugin-admob-free copied to clipboard
0.26.0 crash on ios after splash screen
hi, tnx for your work 🙌 Yesterday I update my app with your plugin and it was perfect on android. On ios, instead, it crashed so I have forced to 0.25.0 version ;)
Same here, version 0.26.0 crashes after the splash screen on iOS, this is the console info:
*** Terminating app due to uncaught exception 'GADInvalidInitializationException', reason: 'The Google Mobile Ads SDK was initialized incorrectly. Google AdMob publishers should follow instructions here: https://googlemobileadssdk.page.link/admob-ios-update-plist to include the AppMeasurement framework, set the -ObjC linker flag, and set GADApplicationIdentifier with a valid App ID. Google Ad Manager publishers should follow instructions here: https://googlemobileadssdk.page.link/ad-manager-ios-update-plist'
I have set the ADMOB_APP_ID variable on installation.
add this to your config.xml file
<platform name="ios">
<config-file parent="GADIsAdManagerApp" platform="ios" target="*-Info.plist">
<true />
</config-file>
</platform>
add this to your config.xml file
<platform name="ios"> <config-file parent="GADIsAdManagerApp" platform="ios" target="*-Info.plist"> <true /> </config-file> </platform>
Thanks alot ersingencturk. I'v been trying with no luck for 2 days. You saved me from aging fast.
add this to your config.xml file
<platform name="ios"> <config-file parent="GADIsAdManagerApp" platform="ios" target="*-Info.plist"> <true /> </config-file> </platform>
YOU ARE AMAZING
Can someone explain why is GADIsAdManagerApp key needed? It's not included in AdMob integration steps and interestingly until today my app would work without it... now suddenly it crashes without ( probably after pod update) currently: Installing Google-Mobile-Ads-SDK (7.69.0) Installing GoogleAppMeasurement (7.5.0)
I found this thread (https://groups.google.com/g/google-admob-ads-sdk/c/s_rkq9y1zvw) "it will be necessary to add for Ad Manager a key GADIsAdManagerApp with boolean "yes" to the Info.plist as described here - https://developers.google.com/ad-manager/mobile-ads-sdk/ios/quick-start#update_your_infoplist"
Following the link - there's no mention of GADIsAdManagerApp key :)
OFC I have GADApplicationIdentifier in my info.plist. Why do i need the GADIsAdManagerApp key?
Confirm this is the solution until now