Have any questions?

+44 (20) 3540 6226

hello@appshed.com

Can I save data within my app, permanently?

5.0/5 rating (1 votes)

You can save data in your app using form fields (such as Input Box, Select etc). 

When someone uses your app, and enters data into these fields, the information will be saved onto their device. If they leave that page, and return to it later, the information will still be there.

If the user closes the app and later on opens it again, in most cases the information will still be there, as they entered it.

In some cases the data will be erased. It is difficult to determine what causes the data to be erased. If the user changes their browser settings and chooses to "Delete cached/stored data" that will definitely erase the data. They might have other security settings that limit data storage on their device.

 

Professional app developers get around this problem in two ways:

  1. Create a native app for storing imporatnt data. Native apps have much more control over data storage.
  2. Send data to an online database. This is the only fool-proof method of permanently saving data.

 

Aside:

It is also possible to store data using JavaScript methods, e.g.  

app.setVariable( "savedinfo" , app.getVariable("savedinfo") + app.getVariable("myinfo") )

However these methods make use of the same browser cache as form fields, so they are subject to the same limitations and the data can easily be lost.

Share this product

appshed name white text 250

Copyright © 2017 AppShed Limited