ratson / cordova-plugin-admob-free

New development has been moved to "admob-plus-cordova", https://github.com/admob-plus/admob-plus/tree/master/packages/cordova
https://github.com/admob-plus/admob-plus
MIT License
499 stars 214 forks source link

0.26.0 crash on ios after splash screen #352

Open bx67212 opened 5 years ago

bx67212 commented 5 years ago

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

shonek007 commented 5 years ago

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.

ersingencturk commented 5 years ago

add this to your config.xml file

 <platform name="ios">
        <config-file parent="GADIsAdManagerApp" platform="ios" target="*-Info.plist">
            <true />
        </config-file> 
 </platform>
involved1984 commented 4 years ago

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.

Aihabam commented 4 years ago

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

pklapuch commented 3 years ago

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?

linhtranvu commented 3 years ago

Confirm this is the solution until now