ios中的cordova'admob free'-应用运行时异常 [英] cordova 'admob free' in ios - exception when app running
本文介绍了ios中的cordova'admob free'-应用运行时异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如您在 sdk文档,
从Google Mobile Ads SDK 7.42.0版本开始,此步骤是必需的。
添加失败后,出现
消息,导致崩溃: Google Mobile Ads SDK初始化不正确。
https://ratson.github.io/cordova-plugin-admob-free
running results in exception:
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 set the 'GADApplicationIdentifier' value in the *.plist file but still get the same error. What it can be?
解决方案
I had the same issue and resolved it by adding GADIsAdManagerApp
key with a boolean value YES
to my app's Info.plist
.
As you can see in the sdk documents,
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."
这篇关于ios中的cordova'admob free'-应用运行时异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文