This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

iOS - Peripheral Device Battery Level Indicator

Hi, I was using LG's HBS750 (Bluetooth Headset).

This device , after it is connected to an iOS device, shows the headset's battery level.

(Device Spec : Bluetooth 3.0

Supports HFP, HSP, AVRCP, A2DP)

image description

(The test device is iPhone 4S with iOS 7.2)

Similarly, could the battery service provide this feature too?

Is there an example to show the peripheral's battery level at iOS?

-Regards, Mango922

Parents
  • A similar question was also asked on StackOverflow (stackoverflow.com/.../ios-how-can-i-get-the-battery-level-of-the-connected-bluetooth-device). The response there directs to Apple's Bluetooth Developer Guidelines (developer.apple.com/.../BluetoothDesignGuidelines.pdf). It looks like the battery indicator is only for Hands-Free Profile (HFP), not bluetooth low energy.

    It probably wouldn't make sense to have a single indicator for bluetooth low energy. If the phone was connected to multiple devices is wouldn't be clear which it was showing. Since only one headset is connected at a time and many still think of bluetooth as synonymous with headsets/audio, the current use of the battery icon doesn't seem too confusing.

    A common alternative approach is for individual apps to request notifications from the Battery Service and either/both: a) display battery status internally and/or b) use iOS notification pop-up when power is low. This approach requires an "opt-in" from the user (intentionally running the app in the background and either checking it regularly or allowing it to do iOS notifications).

Reply
  • A similar question was also asked on StackOverflow (stackoverflow.com/.../ios-how-can-i-get-the-battery-level-of-the-connected-bluetooth-device). The response there directs to Apple's Bluetooth Developer Guidelines (developer.apple.com/.../BluetoothDesignGuidelines.pdf). It looks like the battery indicator is only for Hands-Free Profile (HFP), not bluetooth low energy.

    It probably wouldn't make sense to have a single indicator for bluetooth low energy. If the phone was connected to multiple devices is wouldn't be clear which it was showing. Since only one headset is connected at a time and many still think of bluetooth as synonymous with headsets/audio, the current use of the battery icon doesn't seem too confusing.

    A common alternative approach is for individual apps to request notifications from the Battery Service and either/both: a) display battery status internally and/or b) use iOS notification pop-up when power is low. This approach requires an "opt-in" from the user (intentionally running the app in the background and either checking it regularly or allowing it to do iOS notifications).

Children
No Data
Related