Acknowledged

Bug: ANT in background is broken (Fenix 7)

Description:
There is an issue for Fenix 7 (sw version 11.28) when using an ANT channel in a background service (onTemporalEvent) of a widget.
Background service (onTemporalEvent) is run periodically (every 5 min) to open an ANT channel and receive sensor data from an ANT device.
This works fine if the "super app" is run as an activity (always open and in foreground). But if the same app is run as a widget the first of the backgriund service (onTemporalEvent) might be able to open the ANT channel and receive some sensor data, whereas all other periodic calls of the background service fail to receive data. After a while even just initializing a GenericChannel object fails with an excelption "Unable to acquire ANT Channel". 

Additional insight:
Restarting the device or connecting and disconnecting device to USB might resolve the issue until the next call of the backround service (onTemporalEvent).
All sorts of trying to release the GenericChannel object an the end of the background service call fail to resolve the issue.
Same code is running fine on a Vivoactive 3.

Try yourself:
You can reproduce the issue by using the example code for an ANT temp sensor (https://developer.garmin.com/connect-iq/core-topics/ant-and-ant-plus/) and run it as a background service (https://developer.garmin.com/connect-iq/core-topics/backgrounding/) every 5 minutes. 

Parents Comment Children
No Data