onStorageChange() not being called

I grab my EDGE's device Temp using an every 5 minute BG temporal process. Working great. Right now check every second for the background saved Storage Value. But that value only potentially changes once every 5 minutes, so that is wasted processing.

In the simulator, I just tried to replace my manual storage value check with "onStorageChange()". But this is never called. 

I know Storage is being written to, since I added a "println" in my background process where Background.exit(data) values are written using Storage.setValue().

I also use "onSettingsChanged()", and that works perfectly for when I make a User Setting change.

Any tricks to get "onStorageChanged()" to trigger? Seems straight forward. Weird that it isn't being called.

Thanks!

  • What do you see on a real device?  Create a log file on it if you want to catch your println() calls.

    Also, once your Background is done, are you calling Background.exit()?  if your main app is running and you return something other than a null, you should see onBackgroundData() being called.