Propertys lost

My app has three Settings to change and they should be stored.
So I done like the ObjectStore example, using

App.setProperty(key, value);
and
value = App.getProperty(key);


The value is stored, if i use getProperty() while the App is running, I get the correkt value back.
But if I close the App and start it again, i get null for my three values.
It is the same in Simulator and on Device, but the ObjectStore example is working. I just Can't find out what I am missing. The seems to be no permission or something for saving properties.

Can somebody help me?
  • if I call system.exit() somewhere in my app, the properties are lost. What else can I do tot terminate the App?

    - (Object) exit
    To end execution of the current system cleanly from any point in the app.
    Seems to be not correct.
  • Former Member
    Former Member over 8 years ago
    To terminate your app, I think you will have to pop all remaining views using WatchUi.popView().

    The Exit function should work as documented, but I think there is an issue with that exit path causing your settings to be lost.
  • To terminate your app, I think you will have to pop all remaining views using WatchUi.popView().

    Thank you, that works!

    The Exit function should work as documented, but I think there is an issue with that exit path causing your settings to be lost.

    It works, it exits the app. I ment cleanly is not correct, because the settings are lost ;-)