Can I store values on my device for use in a later session?

Posted by jsniemi79 on 20-Nov-2014 12:45

I'd like to be able to store values like User and PW on the device, so the user doesn't have to type them every time.  I thought this was something that was added recently, but haven't been able to find it yet.

Thanks in advance for your help.

Posted by Roger Blanchard on 20-Nov-2014 12:50

You can use HTML5 local storage.

localStorage.setItem('Name','Value');

localStorage.getItem('Name');

All Replies

Posted by Roger Blanchard on 20-Nov-2014 12:50

You can use HTML5 local storage.

localStorage.setItem('Name','Value');

localStorage.getItem('Name');

Posted by jsniemi79 on 20-Nov-2014 12:54

That will span multiple sessions?

Posted by Roger Blanchard on 20-Nov-2014 12:58

Yes, it is stored on the device. We use it to store the server ip we are connecting to as well as other app setup info.
 
Roger Blanchard
Osprey Retail Systems, Inc.

Posted by jsniemi79 on 20-Nov-2014 13:10

Thanks Roger, I appreciate it.

This thread is closed