cordova-plugin-admob-free icon indicating copy to clipboard operation
cordova-plugin-admob-free copied to clipboard

0.26.0 crash on ios after splash screen

Open bx67212 opened this issue 5 years ago • 6 comments

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 ;)

bx67212 avatar Apr 10 '19 12:04 bx67212

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.

shonek007 avatar Apr 12 '19 11:04 shonek007

add this to your config.xml file

 <platform name="ios">
        <config-file parent="GADIsAdManagerApp" platform="ios" target="*-Info.plist">
            <true />
        </config-file> 
 </platform>

ersingencturk avatar Apr 23 '19 14:04 ersingencturk

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.

involved1984 avatar Jul 10 '19 21:07 involved1984

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

Aihabam avatar Nov 11 '19 12:11 Aihabam

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?

pklapuch avatar Jan 28 '21 15:01 pklapuch

Confirm this is the solution until now

linhtranvu avatar Feb 08 '21 11:02 linhtranvu