-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Troubles with native login #2
Comments
Hello, Did you configure AppDelegate.swift as explained?
|
Sure I did. Should I use other callback(s) maybe? |
@sebdej I was able to make it work by adding the following code: func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
// The code that I added:
if let scheme = url.scheme, let host = url.host {
if scheme == "fb\(SDKSettings.appId)" && host == "authorize" {
return SDKApplicationDelegate.shared.application(app, open: url, options: options)
}
}
// end of the code snippet
return CAPBridge.handleOpenUrl(url, options)
} |
@sebdej now I have similar problem on Android – web popup works just fine, but nothing happens when native FB app is installed, it doesn't even try to open it. What might be the reason? |
Here is what I see in debug log:
|
Yes, you're right, I have a similar handler, in my AppDelegate class, I will update the documentation. |
Oh I'm sorry – it actually works! That was my mistake on Android. |
Hi,
I'm unable to login through native FB app on iOS, but the login works just fine with web popup. I tried to enable keychain sharing capability as cordova-plugin-facebook4 FAQ suggests, but it didn't help. Their plugin doesn't work either.
What might be the reason?
The text was updated successfully, but these errors were encountered: