Hello,
quick question: is it possible to get HRV, stress and body battery in an android app on a smartphone from the Forerunner 55 without having to sync with Garmin Connect ?
scenario:
I've developed an app for Android that uses HRV, stress and body battery to send health advices.
At the moment, my android app receives data from an external service that collects the data from REST API's on Garmin cloud.
The problem is that after some minutes, the garmin connect app on the smartphone stops syncing in the background (due to android battery saving limitations, even if disabled) and data are not uploaded to the cloud until Garmin Connect comes back to the foreground.
As a workaround, I'm using an intent to periodically launch garmin connect from my app, but this causes a bad user experience,
I'd like to find a way to get sensor data without relying on garmin connect sync service.
So far, I've found out that this may be possible by developing a custom IQ app for the Forerunner 55 , but I'd like to get advice on the best architecture to adopt.
The possible solutions that I've found are:
1 - create a background service for the Garmin device that collects sensors data and periodically sends them to a remote web service, then I'll fetch the ws from my android app
2 - create an app for the Garmin device that responds to my android app polling and returns sensors history, but how will I poll the Garmin device? Can iI connect via BLE directly or is there any other protocol?
I will appreciate suggestions.
Thank you
Kind regards