Hello,
I have a small project here that should continue to collect GPS data and heart rate data (also) in the background even when the app is in the background or the smartphone is in standby mode.
In my project GPS data (MyLocation project) and (BLE - Heart Rate Monitor from Erel) are collected but heart data is not collected in the background.
Can someone help me that the heart rate data is also collected all the time.
AND
what would the code look like if B4XPages system is used.
Thanks in advance
I have a small project here that should continue to collect GPS data and heart rate data (also) in the background even when the app is in the background or the smartphone is in standby mode.
In my project GPS data (MyLocation project) and (BLE - Heart Rate Monitor from Erel) are collected but heart data is not collected in the background.
Can someone help me that the heart rate data is also collected all the time.
AND
what would the code look like if B4XPages system is used.
Thanks in advance
Background location tracking
Simple example of a foreground service that keeps the process running in the background. The current location is shown in the persistent notification. The app starts at boot and theoretically should run all the time. It also schedules itself to run with StartServiceAt. This can help in cases...
www.b4x.com
BLE - Heart Rate Monitor
HeartRateMonitor class searches for peripherals with the heart rate service (0x180D). Once a peripheral device is found and connected then a notification is set for the heart rate measurement characteristic (0x2A37). The DataAvailable event is raised whenever the heart rate changes. The heart...
www.b4x.com