06-12-2018 02:47 - edited 06-12-2018 02:48
06-12-2018 02:47 - edited 06-12-2018 02:48
I'm developing a clockface for the Ionic, in which I can change the appearance during runtime.
Now I noticed that, when I start another app and return to the clockface, the clockface shows the start up appearance again.
So it seems that the clockface will be restarted everytime when you return to it. Is this correct, or do I do something wrong?
Capitano
Answered! Go to the Best Answer.
06-12-2018 02:53
06-12-2018 02:53
Both. 🙂
Yes, the clockface restarts, meaning that any data stored in variables will be lost.
Yes, you need to save your customised appearance settings using the filesystem before they're lost (eg, whenever they're changed), and then reload them when your clockface restarts. There's a couple of threads about that somewhere, including sample code.
06-12-2018 02:53
06-12-2018 02:53
Both. 🙂
Yes, the clockface restarts, meaning that any data stored in variables will be lost.
Yes, you need to save your customised appearance settings using the filesystem before they're lost (eg, whenever they're changed), and then reload them when your clockface restarts. There's a couple of threads about that somewhere, including sample code.
06-12-2018 02:56
06-12-2018 02:56
Thanks a lot for the quick answer!
06-12-2018 04:21
06-12-2018 04:21
Hi, I've been having the same issue. I tried searching for a solution on the forum but I haven't been able to find a related thread. Could you possibly link to one/some of them please?
06-12-2018 06:30 - edited 06-12-2018 07:13
06-12-2018 06:30 - edited 06-12-2018 07:13
Ok, I searched some more and found a few pieces of helpful code I'm going to try out. I searched for "save settings" and these came up:
06-12-2018 13:51
06-12-2018 13:51
@JeComYep, those are what I was remembering. 🙂