I was under the impression that when onTemporalEvent ends with Background.exit(), that a call to onBackgroundData would be made, but from what I can see, this only happens if the GlanceView is showing as can be seen by the log below. At 22:57, 23:02 and 23:07, the call to onTemporalEvent, ended with a call to Background.exit() but no onBackgroundData function was called until 23:08 which is when I switched to the Glance view. Plus you can see that data was stuck in the buffer until onBackgroundData was called. Is this normal behavior or is there a way to force a onBackgroundData even when the glance view isn't showing (the whole app class is still loaded so there's no reason to not be able to call it)?
If it's its normal behavior, is there a way to simulate this in the simulator? I couldn't find one and it's hard to debug/work around this through a physical device.
22:57:23 : App: Initialising app
22:57:23 : App: starting app
22:57:23 : App: getServiceDelegate
22:57:23 : ServiceDelegate: onTemporalEvent
22:57:23 : ServiceDelegate : onTemporalEvent getting data
22:57:24 : onReceiveVehicleData already has background data! -> '{status=>408|67|Complete|168|19.400000|false|false| @ 22:52|, responseCode=>408}'
22:57:24 : onReceiveVehicleData: responseCode = 408
22:57:24 : onReceiveVehicleData exiting with data={status=>408|67|Complete|168|19.400000|false|false| @ 22:57|, responseCode=>408}
22:57:24 : App: stopping app
23:02:23 : App: Initialising app
23:02:23 : App: starting app
23:02:23 : App: getServiceDelegate
23:02:23 : ServiceDelegate: onTemporalEvent
23:02:23 : ServiceDelegate : onTemporalEvent getting data
23:02:24 : onReceiveVehicleData already has background data! -> '{status=>408|67|Complete|168|19.400000|false|false| @ 22:57|, responseCode=>408}'
23:02:24 : onReceiveVehicleData: responseCode = 408
23:02:24 : onReceiveVehicleData exiting with data={status=>408|67|Complete|168|19.400000|false|false| @ 23:02|, responseCode=>408}
23:02:24 : App: stopping app
23:07:23 : App: Initialising app
23:07:23 : App: starting app
23:07:23 : App: getServiceDelegate
23:07:23 : ServiceDelegate: onTemporalEvent
23:07:23 : ServiceDelegate : onTemporalEvent getting data
23:07:25 : onReceiveVehicleData already has background data! -> '{status=>408|67|Complete|168|19.400000|false|false| @ 23:02|, responseCode=>408}'
23:07:25 : onReceiveVehicleData: responseCode = 408
23:07:25 : onReceiveVehicleData exiting with data={status=>408|67|Complete|168|19.400000|false|false| @ 23:07|, responseCode=>408}
23:07:25 : App: stopping app
23:08:38 : App: Initialising app
23:08:38 : App: starting app
23:08:38 : App: onBackgroundData
23:08:38 : App: onBackgroundData: 408|67|Complete|168|19.400000|false|false| @ 23:07|
23:08:38 : App: onBackgroundData responseCode is 408
23:08:38 : ServiceDelegate:testAwake
23:08:38 : Glance: Starting glance view
23:08:39 : onReceiveVehicles: 200
23:08:42 : App: stopping app
Thanks.