Page 1 of 3

How to keep users logged in, until they logout.

Posted: Thu May 07, 2015 11:31 am
by rajanmr

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.


How to keep users logged in, until they logout.

Posted: Fri May 08, 2015 8:20 am
by Alena Prykhodko

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...


How to keep users logged in, until they logout.

Posted: Fri May 08, 2015 8:36 am
by rajanmr

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.


How to keep users logged in, until they logout.

Posted: Sat May 09, 2015 8:44 am
by Evgene Karachevtsev

Hello rajanmr,

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


How to keep users logged in, until they logout.

Posted: Sat May 09, 2015 3:17 pm
by rajanmr

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.


How to keep users logged in, until they logout.

Posted: Mon May 11, 2015 3:44 am
by Yurii Orishchuk

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.


How to keep users logged in, until they logout.

Posted: Mon May 11, 2015 5:36 am
by rajanmr

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.


How to keep users logged in, until they logout.

Posted: Mon May 11, 2015 6:30 am
by Illya Stepanov

Hi -

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


How to keep users logged in, until they logout.

Posted: Mon May 11, 2015 6:37 am
by rajanmr

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


How to keep users logged in, until they logout.

Posted: Mon May 11, 2015 6:48 am
by Illya Stepanov

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