Hi, to help finding when a log trace starts when debugging, I've added "Starting app" in the Initialize function.
(:background) class TeslaLink extends App.AppBase { function initialize() { logMessage("Starting app"); AppBase.initialize(); }
To my surprise, the following was shown in the log file on my watch
9:08:04 : Starting app
9:13:03 : Starting app
9:18:04 : Starting app
9:23:04 : Starting app
9:28:04 : Starting app
9:33:05 : Starting app
9:38:06 : Starting app
9:43:06 : Starting app
9:48:06 : Starting app
9:53:06 : Starting app
9:57:15 : Starting app
9:57:47 : Starting app
9:57:47 : stateMachine vehicle_id 1493038771190796 vehicle_state online _need_auth false _auth_done true _check_wake false _need_wake false _wake_done true
9:57:47 : StateMachine: Requesting data
9:57:49 : onReceiveVehicleData: responseCode is 408
9:57:50 : stateMachine vehicle_id 1493038771190796 vehicle_state online _need_auth false _auth_done true _check_wake true _need_wake false _wake_done true
9:57:50 : StateMachine: Getting vehicles list
9:57:51 : onReceiveVehicles:responseCode is 200
9:57:51 : stateMachine vehicle_id 1493038771190796 vehicle_state asleep _need_auth false _auth_done true _check_wake false _need_wake true _wake_done false
I didn't launch the app every five minutes so the watch is itself calling the app Initialize function. I'm guessing it's doing that for every other apps I have installed too. I could see on a watch that support Glance to do this to update the glance data, but what good does it do on a watch without Glance support?
Just curious on why it does that as I find it wastes resources for no apparent gain.