Hello,
We are developing an industrial safety app that monitors BLE safety equipment (e.g. a safety harness hook sensor) worn by workers on construction sites. The app reports the equipment state to our server so that site managers can monitor worker safety in near real time.
Current implementation
- The app uses the "bluetooth-central" background mode and scans for our peripheral's service UUID.
- When the app is in the background and receives an advertisement from the equipment, it is woken up briefly and sends the equipment state to our server.
- Tested on iOS 27.2.1 (iPhone 15 Pro). The peripheral advertises every 150 ms.
Problem
When the server stops receiving data, we cannot tell which of these happened:
- The phone is in an area with no network coverage (very common on construction sites, e.g. basements), or
- The equipment stopped advertising (battery depleted, malfunction, out of range), or
- The app was suspended or terminated.
For a safety product this distinction matters: case 2 requires immediate action by the site manager, while case 1 does not.
What we would like to do
Send a small heartbeat request to our server about once per minute while the app is in the background, regardless of whether any BLE event occurred. The server would then interpret:
- heartbeat received with equipment data -> normal
- heartbeat received without equipment data -> equipment problem
- no heartbeat -> no network coverage (or app not running)
Questions
- Is there any supported way to run a periodic task at roughly 1-minute intervals in the background that does not depend on BLE events? Our understanding is that BGAppRefreshTask and silent push notifications are not suitable because their timing is at the system's discretion. Is that correct?
- Our app does not otherwise use the user's location. We assume that enabling the "location" background mode solely to keep the app running for this heartbeat would not be an appropriate use of that mode. Could you confirm this?
- In the background, are repeated advertisements from the same peripheral coalesced into a single discovery event? If so, would maintaining a connection and using notifications (e.g. the peripheral notifying a characteristic once per minute) be the recommended way to get regular wake-ups from the equipment?
- Is there a better pattern you would recommend for distinguishing "no network coverage" from "peripheral stopped advertising" for a background BLE app?
As a fallback we plan to log each wake-up locally with a timestamp and upload the backlog when connectivity returns, so the server can classify gaps after the fact. However, we would prefer real-time detection if a supported approach exists.
Thank you for any guidance.