canOpenUrl fail "org-appextension-feature-password-management" (PayPal) - ios

PayPal payment not working as I get failure on opening a URL
-canOpenURL: failed for URL: "org-appextension-feature-password-management://" - error: "(null)"
In accordance with the documentation I added org-appextension-feature-password-management to my info.plist, but I still get the below error.
Ideas what I might have overlooked?

Seems to be a bug in PayPal SDK.
The error only occurs in the PayPalEnvironmentNoNetwork setting. When you switch over to PayPalEnvironmentSandbox or PayPalEnvironmentProduction the error does not persist (assuming you have set LSApplicationQueriesSchemes correctly).

Related

canOpenURL when returns false prints out an unnecessary error message

I am using canOpenURL to open the app if installed in the device. And added the LSApplicationQueriesSchemes to whitelist the Schemes. But when canOpenURL returns false It always prints out an unnecessary error message in the console log. Below is the error message I receive.
-canOpenURL: failed for URL: "XXXX://XXXXXXXXXXXXX" - error: "The operation couldn’t be completed. (OSStatus error -10814.)
As I am using multiple schemes in my application, and my customer does not want these error message logs. Is there any way I can avoid printing these warning/log message to console.
This is the radar link(similar issue). Its closed without any solution.
Currently I am using iOS 11.
Any help will be appreciated.
Seems an intended syslog by Apple mentioned in their WWDC presentation
https://developer.apple.com/videos/play/wwdc2015/703/?time=576
This does not print to device log. As its printing only in the debug area, we can ignore it.

canOpenURL, problems adding site to whitelist

I am currently updating an app and using Xcode 7.3. The app utilizes iAd banner ads and Flurry interstitial ads. When the iAd banner goes to load I get the error.
-canOpenURL: failed for URL: "about:blank" - error: "This app is not allowed to query for scheme about"
The banner loads just fine, and everything works as planned.
In researching this I found the method was deprecated for privacy reasons. However, I can not even find it in any of my files. Also, I have read about adding sites to a whitelist with LSApplicaitonQueriesSchemes. I did this in my plist with the following strings in the array;
about:blank
about
blank
The error then reads;
-canOpenURL: failed for URL: "about:blank" - error: "(null)"
I can't seem to get rid of the error no matter what I do. Does anyone have any ideas of what to do? I see a lot of info for urls that go to social media apps and such, but not for the about:blank url. Thanks in advance.
You only need to whitelist about since that is the scheme being accessed.
The message -canOpenURL: failed for URL: "about:blank" - error: "(null)" means you have everything working. iOS logs that informational message when an app tries to call canOpenURL: for a whitelisted scheme but there is no app installed that supports the given scheme. It's a confusing debug message from iOS that can be safely ignored.

Error logs while signing using Facebook

I am getting following error when trying to login via FB
I am using FB sdks 4.8.0
Error log :
-canOpenURL: failed for URL: "fbauth2:/" - error: "(null)"
The error you see in the console is normal. You will see this when calling canOpenURL and the corresponding app isn't not installed. The error can be safely ignored.
For same question : https://stackoverflow.com/questions/33958000/facebook-login-error-in-ios9
Also Set your info.plist as per image

afnvision:// URL Scheme

iOS application is calling following error:
-canOpenURL: failed for URL: "afnvision://" - error: "This app is not allowed to query for scheme afnvision"
I have looked LSApplicationQueriesSchemes and all calls to canOpenURL , but can't find such a url scheme any where. I have not added this url scheme in my app.
I feel appsFlyer is calling this. Because I get two logs
[1669:49374] AppsFlyer SDK version 2.5.3.16 started
[1669:49374] -canOpenURL: failed for URL: "afnvision://" - error: "This app is not allowed to query for scheme afnvision"
Anyway I can stop this or know which all URL schemes my app calls when it is on App store.
In you info.plist file, add afnvision under LSApplicationQueriesSchemes as shown in the screenshot below:

-canOpenURL: failed for URL: "fbauth2:/" - error: "(null)" for ios 9 (swift)

I have seen many problems like my question.And i have tried all solution .but i am getting this same problem.
My Problem:
when i click facebook login button ,its opening in safari and with in some seconds my page went off and return to facebook login button
In both simulator and device i am getting this problem
My warning:
-canOpenURL: failed for URL: "fbauth2:/" - error: "(null)"
Here is my.plist :
How to fix this problem !
I also updated my plist with fbapi,fbauth string alone.But that time also not able to resolve my problem
I think it all about the Facebook SDK. I also face this problem .So my suggestion is to use the latest Facebook SDK.If you are using only for login means - you can add coreKit,LoginKit and use fbauth2 alone for your problem.No need to add others items.Latest Facebook SDK. Or try to use the V4.6.0 SDK.Here is the link Older SDK
Hope this help

Resources