Search code examples
javascripttizentizen-web-app

How to save user data across app updates?


I am building an app for the Samsung Galaxy Watch (Tizen OS via html/css/javascript).

The user is able to set individual settings in the app / enter custom information.

Question: How can I ensure that this user supplied information is saved between app updates?

Wanted Outcome:

  1. User installs app version 1.
  2. User inputs data into app version 1.
  3. An update to app version 2 becomes available.
  4. User updates to app version 2.
  5. User data supplied in app version 1 is available in app version 2 (after update).

Solution

  • You can preserve application's setting using tizen.preference.setValue(key, value) and retrieve it by using tizen.preference.getValue(key)

    I think this page will be helpful : https://developer.tizen.org/development/guides/web-application/application-management/application-preferences?langredirect=1