capacitor-community / admob

Community plugin for using Google AdMob
MIT License
205 stars 66 forks source link

iOS error for missing application ID but it's actually added in Info.plist #279

Closed sourcecodeit closed 9 months ago

sourcecodeit commented 10 months ago

Describe the bug I followed the instructions and I added my App ID and the other keys, however, when I launch the app from XCode I get the error:

libc++abi: terminating with uncaught exception of type NSException *** Terminating app due to uncaught exception 'GADInvalidInitializationException', reason: 'The Google Mobile Ads SDK was initialized without an application ID. Google AdMob publishers, follow instructions at https://googlemobileadssdk.page.link/admob-ios-update-plist to set a valid application ID. Google Ad Manager publishers, follow instructions at https://googlemobileadssdk.page.link/ad-manager-ios-update-plist.' terminating with uncaught exception of type NSException CoreSimulator 857.14 - Device: iPhone 14 Pro (C69FDDE1-DD6E-4E5F-AA16-EC6627207107) - Runtime: iOS 16.2 (20C52) - DeviceType: iPhone 14 Pro

Screenshots

image

Desktop (please complete the following information):

Smartphone (please complete the following information):

sourcecodeit commented 9 months ago

Solved, my key GADApplicationIdentifier wasn't using the correct value.