Complete
over 4 years ago

CIQQA-164

F5 can't save to Storage from Background (while F6 and others can)

Fénix 5 serie can't Toybox.Application.Storage.setValue from a Background process => throws an Exception. 

Fénix 6 and others like FR245 can. 

  1. It's not documented
  2. Bug or feature? 
  3. How to test programmatically if the device can saving to Storage from background without always needing to throw and catch such exception that is dirty, ugly and inefficient?
Parents
  • True, it is "now" in the developers guide, but that limitation should be clear in the Storage API documentation. These background context limitations are never clearly stated. There are others that I ran into via trial and error e.g. loading String resources in background context not being supported for older CiQ versions, I found no reference to that in the API docs. Thankfully I was clarified in the Forums.

Comment
  • True, it is "now" in the developers guide, but that limitation should be clear in the Storage API documentation. These background context limitations are never clearly stated. There are others that I ran into via trial and error e.g. loading String resources in background context not being supported for older CiQ versions, I found no reference to that in the API docs. Thankfully I was clarified in the Forums.

Children
No Data