Page 1 of 2
Facebook Login redirect back to startScreen
Posted: Sun Oct 05, 2014 9:34 am
by Govinda Dasu
I configured the Facebook Login to redirect back to startScreen, but I need the page to reload -- so that javascript that's called on page load executes. What I have done works for web but it doesn't work in phonegap?
See:
http://appery.io/app/view/5cd3d238-81...
vs
https://appery.io/app/project/5cd3d23...
Facebook Login redirect back to startScreen
Posted: Sun Oct 05, 2014 10:48 am
by Alena Prykhodko
Hello,
Could you please tell steps to test?
On what event it is supposed to redirect back to login page?
Facebook Login redirect back to startScreen
Posted: Sun Oct 05, 2014 10:51 am
by Govinda Dasu
click the Facebook Login button.
in the browser it comes back to startScreen and runs a script to remove the login/signup options and replace them with a logout button
in phonegap, this doesn't happen
in order for you to test this, i will have to add you as a tester to the facebook app -- how should we go about doing this?
Facebook Login redirect back to startScreen
Posted: Sun Oct 05, 2014 10:58 am
by Alena Prykhodko
You can create test account and grant necessary permissions, and then tell us its test credentials.
Facebook Login redirect back to startScreen
Posted: Sun Oct 05, 2014 11:00 am
by Govinda Dasu
you mean create a new facebook account and then tell you the email and password to that facebook account? ... hmm i don't think it's possible/legal to create test facebook accounts?
Facebook Login redirect back to startScreen
Posted: Sun Oct 05, 2014 11:09 am
by Govinda Dasu
Alright well, I did it anyway:
email: a href="mailto:gdasu@alumni.stanford.edu" rel="nofollow"gdasu@alumni.stanford.edu/a
password: dumdum99
birthday: July 4, 1994
Please try logging in and tell me what the issue is with my app when on phonegap
Facebook Login redirect back to startScreen
Posted: Sun Oct 05, 2014 11:18 am
by Alena Prykhodko
Govinda,
I've tested both cases.
After success log in, I see the error http://prntscr.com/4t8cec, then click OK and it redirects me to startScreen.
What Android version do you have on your device?
Please try to debug http://devcenter.appery.io/documentat...
Also, if you wish, you can delete comment with credentials in order not to make them public, I've added this information to the ticket.
Facebook Login redirect back to startScreen
Posted: Sun Oct 05, 2014 11:19 am
by Govinda Dasu
But look, Alena, what I'm asking is pretty simple: I need to run some javascript after the Appery.navigateTo call? How do I do that?
Please don't respond the following because I've already tried that
- onload of startScreen, run javascript: this doesn't work because the navigate to command doesn't trigger the reloading of startScreen on phonegap
- calling window.functionname() or context.functionname(), after the Appery.navigateTo call
Facebook Login redirect back to startScreen
Posted: Sun Oct 05, 2014 11:27 am
by Govinda Dasu
Alright, you should be able to try it now without getting the error you sent. Also, the important thing is that after a successful login through facebook, the startscreen should remove Facebook Login, User ID Login, Phone Signup, Email Sign Up and replace them with a Logout button. That happens on web but not on phonegap. I use Android 4.4.2. [ok and i'll look into the remote debugger]
Facebook Login redirect back to startScreen
Posted: Sun Oct 05, 2014 11:32 am
by Govinda Dasu
The remote debugger doesn't cover phonegap issues --- it deals with the web app so I can't solve my problem with it.