bug reporting on Corona-3574

My app uses admob.

at Corona-3574, it crashed

*** Terminating app due to uncaught exception ‘GADInvalidInitializationException’, reason: 'The Google Mobile Ads SDK was initialized without an application ID. Google AdMob publishers, follow instructions here: https://googlemobileadssdk.page.link/admob-ios-update-plist to set GADApplicationIdentifier with a valid app ID. Google Ad Manager publishers, follow instructions here: https://googlemobileadssdk.page.link/ad-manager-ios-update-plist’

*** First throw call stack:

(0x1b12e2a48 0x1b1009fa4 0x1b11e70ec 0x1021d72b8 0x102188d44 0x1b0fae610 0x1b0faf184 0x1b0f61190 0x1b12605e4 0x1b125b5d8 0x1b125aadc 0x1bb1e0328 0x1b5355ae0 0x10220ad80 0x1b10e4360)

at Corona-3564 , it works well .

Hi, I just ran into this today.  After following the Google instruction page, I added the required new plist entry to my build.settings file:

iphone = { xcassets = "Images.xcassets", plist = { UIStatusBarHidden = true, UILaunchStoryboardName = "LaunchScreen", GADApplicationIdentifier = "YOUR\_ADMOB\_IOS\_APP\_ID" } },

Of course replace YOUR_ADMOB_IOS_APP_ID with your actual Admob app ID for iOS .

After that, the Corona build process warned about an unknown plist entry:

WARNING: unrecognized key: settings.iphone.plist.GADApplicationIdentifier (string)

however it was just a warning and the app ran OK.

The admob docs page does not yet reflect this:

https://docs.coronalabs.com/plugin/admob/index.html

2 Likes

Thanks man, you saved me

Thanks a lot…   :slight_smile:

Thank you so much- this post really saved my bacon.

My app was running fine when I built it with 3555, but when I built it with 3575, targeting iOS 13.3 it would crash right after the launch screen, no error message, nothing useful that I could find in the console. I’d been chasing the problem all day and adding that one line to the plist was all I needed. Whew! :smiley:

THANK YOU SO MUCH!

Was getting a random crash at launch and the console was no help. This saved me! :slight_smile:

Thanks for this solution, after full day destroying my app , i added this one line and it worked like magic :slight_smile:

corona version 3577

Thank you so much- this post really saved my bacon.

My app was running fine when I built it with 3555, but when I built it with 3575, targeting iOS 13.3 it would crash right after the launch screen, no error message, nothing useful that I could find in the console. I’d been chasing the problem all day and adding that one line to the plist was all I needed. Whew! :smiley:

THANK YOU SO MUCH!

Was getting a random crash at launch and the console was no help. This saved me! :slight_smile:

Thanks for this solution, after full day destroying my app , i added this one line and it worked like magic :slight_smile:

corona version 3577