question

AppyNation Ltd. avatar image
AppyNation Ltd. asked

[Unity iOS Plugin] Errors in the console when loading a banner

I'm getting these errors in the console when loading a banner. 016-01-08 10:47:36.944 amazonmobileads[741:274419] -[NSError init] called; this results in an invalid NSError instance. It will raise an exception in a future release. Please call errorWithDomain:code:userInfo: or initWithDomain:code:userInfo:. This message shown only once. 2016-01-08 10:47:37.106 amazonmobileads[741:274419] -canOpenURL: failed for URL: "about:blank" - error: "This app is not allowed to query for scheme about"

Note that the banner did still load ok.

And also these errors when loading an interstitial.

2016-01-08 10:54:18.171 amazonmobileads[748:275866] -canOpenURL: failed for URL: "about:blank" - error: "This app is not allowed to query for scheme about" 2016-01-08 10:54:18.223 amazonmobileads[748:275866] -canOpenURL: failed for URL: "ios-log:%20in%20update%20viewport" - error: "This app is not allowed to query for scheme ios-log" 2016-01-08 10:54:18.234 amazonmobileads[748:275866] -canOpenURL: failed for URL: "ios-log:%20adding%20ios%20viewport" - error: "This app is not allowed to query for scheme ios-log"

Message was edited by: AppyNation Ltd.

mobile adsunity
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Levon@Amazon avatar image
Levon@Amazon answered
Hi there, There was an issue with test ads that was fixed recently. Could you please re-test and let us know whether you are still seeing any error messages? Thank you.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

AppyNation Ltd. avatar image
AppyNation Ltd. answered
In test mode still getting the banner errors and only the first interstitial error.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Levon@Amazon avatar image
Levon@Amazon answered
These error/warning messages are shown due to security change feature in iOS9. They are generated when your app queries about schemes, e.g. ios-log. You can prevent these warning messages by adding the following entries in your app's plist files: LSApplicationQueriesSchemes ios-log about tel sms These schemes are queried as part of MRAID standard: www.iab.net/mraid We will create a general guideline for this to make it clear for future reference. Thanks!
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

AppyNation Ltd. avatar image
AppyNation Ltd. answered
Please make sure your build process in Unity sets up the schemes correctly. Ensure that you append and don't trample any existing schemes that have been set by other plugins.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Levon@Amazon avatar image
Levon@Amazon answered
The schemes I have referred to are URL schemes. It simply means that when a link is loaded in one of our ads, we will attempt to process that URL. In attempting to process any URL we always check first if the URL can be opened. As of iOS 9, if the URL scheme (the part that normally says "http") is not included in the plist file, as pointed out earlier, the OS will log a warning like you are seeing. These warnings will not hurt any functionality or user experience, as the ads are set up to expect that they may not be able to use those schemes. These particular schemes are being checked before the ad is loaded to verify what functionality the ad may be capable of. There is no harm in allowing the warnings to continue being logged, and there is no harm in adding the lines that I mentioned to the plist file. It will not negatively affect any plugins, since the plist file is shared for the entire application.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Blue Horse avatar image
Blue Horse answered

am getting

-canOpenURL: failed for URL: "about:blank" - error: "(null)"

1 comment
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hi there,

As this thread is quite old and the original issue was solved, please post a new thread with more information about your issue,

Thanks!

0 Likes 0 ·