dpa99c / cordova-plugin-inappbrowser-popup-bridge

A fork of cordova-plugin-inappbrowser which adds Braintree's PopupBridge functionality to support PayPal payments
Apache License 2.0
22 stars 18 forks source link

Incompatibility with cordova-plugin-facebook4 on iOS platform #7

Closed alexgpeppe closed 4 years ago

alexgpeppe commented 5 years ago

I'm submitting a ...

Bug report

Current behavior:

On iOS devices the attempt to login with facebook with Facebook app always fails with the response error User cancelled.. The bug has been tested on a clean Ionic app containing a minimal plugins set, it appeared after installing this plugin.

Expected behavior:

On iOS devices the attempt to login with facebook with Facebook app correctly succeeds as the login through email or phone number does.

Steps to reproduce:

On iOS click the button to login with facebook and from the webview shown below choose to login with the Facebook app. This bug appears only on iOS, on android everything works as expected.

Environment information

Runtime issue

iOS build issue:

alexgpeppe commented 5 years ago

Any updates about this issue...?

dpa99c commented 5 years ago

The iOS part of this plugin is based on the WKWebView component of cordova-plugin-inappbrowser with an extension to support Braintree's PopupBridge.

Can you reproduce the same issue with the current master version (3.1.0-dev) of cordova-plugin-inappbrowser using the WKWebView implementation (usewkwebview=yes) ?

alexgpeppe commented 5 years ago

Thanks for your fast reply, @dpa99c. I couldn't find the version you mentioned, but I replaced the cordova-plugin-inappbrowser-popup-bridge with the version 3.0.0 of cordova-plugin-inappbrowser and now facebook login works as expected. I also managed to add a payment method using braintree without changing my code (I didn't have to use usewkwebview=yes), so now everything is fine for me.