-
Notifications
You must be signed in to change notification settings - Fork 509
Crash After Login second time #568
Comments
yes, it returned OK, but the second login crash the ionic app. any work around this? or just dont need to logout the facebook? |
Has anyone managed to solve this problem? |
if the
could you give a try @cafeasia3 ? |
@peterpeterparker it's still crash. Can not login again with Facebook after logout. when i try to login second time it return "undefined" and try to login again it crash. Any solution. |
there is a lack of details in your question, sorry but I can't give an answer based on "it crash". which os? which os version? which version of the plugin? and important how does your code looks like? could you provide a sample repo? what's the stacktrace? etc. you could try your luck with the PR #642 if you wish (note: I personally don't plan to merge it, maybe other maintainers will) |
@peterpeterparker sorry for incomplete question. I try on Android v - 5.1.1. my code look like this |
@A110SHT spontaneously I would say that the first error is in your code, |
Finally @joaquinr submitted a sample repo on the Ionic Forum (https://forum.ionicframework.com/t/unable-to-install-cordova-facebook-4-plugin-with-android-7-0-0/118170/8) and therefore I was able to reproduce the problem of app crashing after a second login on Android I solved the issue with following commit b594d32 This patch v2.0.1 is now released and available in npm, therefore I close this issue |
After a long time, finally got a superb solution. Please check if you have not done yet the following process
It's working fine now. Please try. |
I have try with plugin version 5.0.0 and on ionic4, iOS 12, but not work. It still login as the same account @peterpeterparker , thanks. |
I am using ionic v1, when user login first time its fine, the facebook doesnt ask email and pass it shows popup then its logged in, then I logout using
then when I login again, this time the popup asked email and password, then my ionic app is crashed after log in.
facebookConnectPlugin.getLoginStatus(function(response)
this status return unknownany idea whats wrong?
The text was updated successfully, but these errors were encountered: