rajanmr
Posts: 0
Joined: Tue Apr 28, 2015 1:28 pm

How to keep users logged in, until they logout.

Hi,

I have tried https://getsatisfaction.com/apperyio/..., but cannot follow it easily.

I created a simple user app for android. Just consider that comes in the example for user registration.

All i need is, that the user remains logged into the app, all the time once he/she registers. But whenever i open the app, it asks for login.

Is there a clear way to achieve this, a complete tutorial will also be helpful, since this is a basic feature for any app.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

How to keep users logged in, until they logout.

Hello,

Please look at a similar post https://getsatisfaction.com/apperyio/..., this is more clear.

Also please read this doc https://devcenter.appery.io/documenta...

rajanmr
Posts: 0
Joined: Tue Apr 28, 2015 1:28 pm

How to keep users logged in, until they logout.

Thanks Alena

I have already read that thread, but My problem is not that, the 120 minute is also not working. App logs out the user the momemt he/she closes the app,there is no time interval before logging out.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

How to keep users logged in, until they logout.

Hello rajanmr,

Could you please clarify how do you test your app? What device with what OS?

rajanmr
Posts: 0
Joined: Tue Apr 28, 2015 1:28 pm

How to keep users logged in, until they logout.

I exported the app to android binary and installed the app in 2-3 android mobiles. App works perfectly well, but each and everytime it is asking for login. Even if i re-open the app just one minute after closing it, it is asking me to login again.

Can you please help me, on solving this issue.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

How to keep users logged in, until they logout.

Hello,

Please specify where you store received "sessionToken". If you store it in local storage it should acceptable even if you reboot your device.

Also please describe us step-by-step problem workflow of your application.

Thanks.

rajanmr
Posts: 0
Joined: Tue Apr 28, 2015 1:28 pm

How to keep users logged in, until they logout.

I have stored the sessionToken in the local storage only. I have made the login screen as the start page for the app. the app does the basic thing, once the user registers, he/she will be given a list of options, once they click on a button, i will pass the user details and the selected option and save it in a 2nd collection in the same database.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

How to keep users logged in, until they logout.

Hi -

Could you please specify which Android version you're using?

rajanmr
Posts: 0
Joined: Tue Apr 28, 2015 1:28 pm

How to keep users logged in, until they logout.

I have tried it in 2 android mobiles one of them is 4.4.4 and another one is 4.2, In both the mobile, the app logs out immediately after closing it. If needed, i can share the app with you, let me know your email. how to share

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

How to keep users logged in, until they logout.

You can share (http://devcenter.appery.io/documentat...) your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and provide us with the following information:

1) App name
2) Test credentials
3) Detailed steps to reproduce the issue

Return to “Issues”