Dealing with Object Store Save on User Reboot

Former Member
Former Member
I have an issue with the object store save if the user reboots the device. It is for a Vivoactive HR.

Is there any way to force a save of that object store data before the reboot happens ? As I understand it .. the data would not be saved on a reboot.
  • Former Member
    Former Member over 8 years ago
    Seems silly when we already have code that runs when an app shuts down and we can just do that.
  • Seems silly when we already have code that runs when an app shuts down and we can just do that.


    I'm thinking about stopping and Saving/Discarding the .fit at the time when the watch is shutting down due to low battery, so that when it's restarted it doesn't go to a native app to try and finish the session. It sounds like today things differ based on the specific device, and this would allow a CIQ to take care of itself.

    It might be kind of silly though, as this is pretty uncommon, as IIRC, at least some devices put up a notice when the battery level is getting critical.
  • Former Member
    Former Member over 8 years ago
    I'm thinking about stopping and Saving/Discarding the .fit at the time when the watch is shutting down due to low battery, so that when it's restarted it doesn't go to a native app to try and finish the session. It sounds like today things differ based on the specific device, and this would allow a CIQ to take care of itself.

    It might be kind of silly though, as this is pretty uncommon, as IIRC, at least some devices put up a notice when the battery level is getting critical.


    I am talking about shutting the app down when the watch shuts down due to low battery, which is something we should definitely be doing. If we shut the app down, it can choose to save/discard the .fit at that time, so there is no need for a special event for low battery shutdown.
  • Former Member
    Former Member over 8 years ago
    Just my 2 cents .. never have gotten that low battery warning so don't know. But .. a save on a long back button press would be a good thing as power off is only one of the 3 options there, and it should be covered like a swipe or right button press.

    I am sure that you will take care of it, even if it is something that is not all that common. :)