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
498 stars 214 forks source link

Error when run in ios #353

Open briansosing opened 5 years ago

briansosing commented 5 years ago

when i run corodva app in ios using by xcode , it show error in Other Sources > main.m , Thread 1: signal SIGABRT .

we only install cordova-admob-free plugin

ersingencturk commented 5 years ago

looks like a change in ads sdk

https://developers.google.com/ad-manager/mobile-ads-sdk/ios/quick-start#update_your_infoplist

Update your Info.plist Declare that your app is an Ad Manager app by adding the GADIsAdManagerApp key with a boolean value YES to your app's Info.plist. You can make this change programmatically:

GADIsAdManagerApp

Or, edit it in the property list editor:

Warning: This step is required as of Google Mobile Ads SDK version 7.42.0. Failure to add add this Info.plist entry results in a crash with the message: "The Google Mobile Ads SDK was initialized incorrectly."

ersingencturk commented 5 years ago

as a workaround if you don't want to add it manually , you can add this to your config.xml file so that every time your project will be updated automatically: ``

``

I guess this now needs to be added to this plugin itself so that config file updated by the plugin