How to clear the last temporal event run time from simulator storage?

Former Member
Former Member

Hi Connecters,

I'm building a watchface which needs to sync with my server the moment it's installed.

I am attempting to build this functionality into my app, but I am running into an issue. 

It seems to be impossible to clear the simulator's storage of when the last time the temporal event was fired for my watchface.

I have tried the following:

  • Delete all apps
  • Reset all app data
  • Kill app
  • Kill device
  • Reboot the simulator
  • Many different combinations of the five options listed above

Despite my best efforts, when I run a completely fresh install of my watchface on the simulator by using the following line:

`Background.registerForTemporalEvent(new Time.Moment(Time.now().value() - 5));`

I am hit with this exception:

`Exception: Background time cannot be set less than 5 minutes since the last run`

But, if I wait a full five minutes since my temporal event last fired (despite killing the app, resetting data, etc.) and then run a fresh install of my watchface, the watchface runs perfectly fine and does not throw this exception. 

So, how do I clear the storage of the simulator so that I can test a completely fresh install of my app where my temporal event will fire immediately upon launch?

Thank you!