From time to time I have crash during read data from storage and I don't know why.
Case:
view call app function that calls BAG.registerForTemporalEvent
BAG
- can be run in future depend on last TemporalEvent,
- of course BAG calls app.onBackgroundData in somewhen in future
in APP.onBackgroundData I save data from BAG to storage
view.onExitSleep read data form storage
So technically is possible that at 12.33 user move wrist and onExitSleep is triggered and the same moment BAG calls onBackgroundData.
I know, there is an bug with timer creation in onExitSleep() and maybe it the same problem refer to my case (I try use storage, and using timers and storage is forbidden in low power) but maybe my case is connected with conflict simultaneous read/write to storage.
Question: is it possible of app crash because of conflict accessing storage (BAG saving and view reading)?