Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to store a data ?

ANSWERED

Hello,

 

T.L.D.R : Creating an app, and try to store a int value without using a server (just to keep stuff inside the watch or the companion).

 

I'm working on an app. And I'm little bit confused about the way to store a data.

I search but I saw multiple way, the first one, I try to store the value with a JSON file, and seems to be not working ; everytime I open the app again the data is read with the value set at 0.

The second way to do it, it's to keep the data on local storage, but I'm not sure if it's a good idea to do that.

The second part of my problem the data is going to be reset at 0 when the day change, (I have my idea on how to do that).

 

So it's even possible to store a value inside an app ?

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

On the watch, use the fs API.

Peter McLennan
Gondwana Software

View best answer in original post

Best Answer
1 REPLY 1

On the watch, use the fs API.

Peter McLennan
Gondwana Software
Best Answer