NativeScript / nativescript-facebook

NativeScript plugin, wrapper of native Facebook SDK for Android and iOS
Apache License 2.0
79 stars 50 forks source link

iOS native login broken #122

Closed sivsushruth closed 5 years ago

sivsushruth commented 6 years ago

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

On iOS devices, login with native behaviour the following happens:

THIS HAPPENS ONLY IN PRODUCTION RELEASE. It works fine with the development build.

After our app requests the login with the library

  1. Page asks to select one of the two "Login with app" or "with email and password"
  2. On tapping 'Login with app' it opens app for login;
  3. After authorization, it transitions to our app screen again, with the web view asking the two options still open.

It does not proceed further. And we do not get any callback etc. On manually cancelling the fb login, it does go back.

Let me know if further information is needed.

lini commented 6 years ago

Could you tell us which version of the nativescript-facebook plugin are you using? Have you tested this behavior using the demo app in this repository or it only happens in your application? Does the issue still happen if you close (swipe away) the app and open it from the device icon instead of starting it from the terminal using tns run ios --release?

sivsushruth commented 6 years ago

@lini Yes, this especially happens when using the final release build. I am using version 2.2.3 of nativescript-facebook plugin

I cannot test in demo app, as it always works in development mode. Only in final release it does not work.

yassilah commented 5 years ago

Hi, i'm having the same issue with the native login except only the callback is not triggered. I'm using the latest version and simply running the demo app on an iPhone 8 (iOS 12.2). Everything else seems to work, there simply isn't any callback.

zbranzov commented 5 years ago

@yassipad I tested the release scenario using the demo app from the repository. I built the app "tns run ios --release", clicked the Facebook login button and was able to log in. Can you try it on your side?

elena-p commented 5 years ago

closing due to inactivity