简体   繁体   中英

AdMob banner isn't working iOS9

I'm working on my app, I wanted to add AdMob banner like I always do without any problem before, but now on this new app it doesn't show up.

The banner ad is in one of the UITableViewCell 's, and I get this log message:

-canOpenURL: failed for URL: "kindle://home" - error: "(null)"

I have disabled Bitcode and I have added the App Transport Security and NSAllowsArbitraryLoads in the info.plist file.

Update to the latest AdMob SDK . This issue was fixed in 7.5.0:

SDK no longer uses UIApplication 's canOpenURL method on iOS 9 devices.

AdMob for iOS Release Notes

I simply pasted this into my info.plist file and it all worked

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>

as per https://developers.google.com/admob/ios/ios9

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM