Hi, hopefully this question will get more traction than my last two ;-)
I have an app that does background processing but when I start the glance or main view, I stop the background process through a call to deleteTemporalEvent in getGlanceView and getInitialView as the main app does the same processing at a shorter interval (and yes, I confirm the onTemporalEvent DO happen even when the main or glance process are running if the background process isn't deleted). Knowing this, where do you think the registerForTemporalEvent should be located? It's currently in the onStop if it's not for the background process but if the app crashes for some reason or the user hard shutoff the device, I'm assuming onStop isn't called and therefore the background process won't be triggered until the user gracefully shuts down the app again.
Thanks.
PS. That was one reason for my question about detecting when onStart is for the background process or not.
Edit: Through println, I can already tell that the background process WON'T restart if the device is shut off WHILE THE APP IS RUNNING (and deleteTemporalEvent was ran). If the app ain't running when the watch is shut down (ie, there is a service delegate registered), then it has no effect and the onTemporalEvent will be called as usual.
Edit2: Shutting the watch 'gracefully' (through the menu) doesn't make the device call the onStop function of the running apps, that sucks :-(