dionisis pot
Posts: 0
Joined: Thu Jan 02, 2014 12:23 pm

Redirect to appery before the correct page

I created a mobile application that the user goes from one page to another page through login via facebook account. The problem is that the first time that you install the application in the mobile then when you complete successful the login thru fb then ask login to appery in order to redirect to the correct page from application.
Can you please help me?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Redirect to appery before the correct page

Hi,

Not sure I understand. Do you need to show one page on the first time and another after a user logged in, right?

dionisis pot
Posts: 0
Joined: Thu Jan 02, 2014 12:23 pm

Redirect to appery before the correct page

Yes. But when you forst install the apk in your mobile phone then after the login in fb, instead of the application page shows the appery login page

dionisis pot
Posts: 0
Joined: Thu Jan 02, 2014 12:23 pm

Redirect to appery before the correct page

Is that something that I must change in the application settings?

dionisis pot
Posts: 0
Joined: Thu Jan 02, 2014 12:23 pm

Redirect to appery before the correct page

Do you have any idea about the solution of this problem?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Redirect to appery before the correct page

Hi,

You can create a splash screen. On its load event run JavaScript code that checks a flag variable (if a user is logged in) and display a page depending on a result.

For example, there is a variable named "entered" in localStorage:prevar pageName = (localStorage.getItem("entered") === "true") ? "main" : "login";

Appery.navigateTo(pageName);/preIf entered=true, we open a page 'main', else 'login'.

Return to “Issues”