Skip to content
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

Window not closing at first login #34

Open
Webstudions opened this issue Aug 23, 2014 · 4 comments
Open

Window not closing at first login #34

Webstudions opened this issue Aug 23, 2014 · 4 comments

Comments

@Webstudions
Copy link

I'm using openfb.js in my Steroids Appgyver project. On iOS it's working fine, but on Android I'm running into a small issue.
When I'm testing the app for the first time and I click on the FB login button it takes me to the login form. Then when I enter my email and password I see my callback page. The window is not closing however.

When I boot the app a second time and I click on the login button I don't need to fill in the form again, the app goes to the callback page and the window closes correctly.

Any ideas on how to fix that the window also closes correctly on the first run?

@lauborges
Copy link

+1

@TillMatthis
Copy link

i'm having the same problem, but also on iOS.

@asifmaniar
Copy link

Anyone know whats going on. On debugging the the access_token comes back correctly and the logoutWindow.close(); is called which closes the window. But there us another login screen behind it?

If I force close the app and go through the process the second time everything works fine. The blank screen only shows if I uninstall the app and open it for the first time.

@asifmaniar
Copy link

I might have answered my own question. I have a login button and sometimes it was triggering 2 clicks, hence the two windows and the blank page issue. Disabling the button on click solved it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants