flutter_reactive_ble
flutter_reactive_ble copied to clipboard
Provide separate access to device name in Generic Access Profile and Advertisement Data.
Is your feature request related to a problem? (please describe) This library was updated to address #84 and #105, but since these fixes use the advertisement data local name (if provided), developers no longer have separate access to the device name defined in the Generic Access Profile if they choose to also use the advertisement data local name.
This can be worked around on Android since you can access the GAP service to read the device name characteristic, but on iOS, the GAP service is blocked by Apple and the only way to retrieve it is via Apple's provided peripheral.name, which this library only uses if the advertisement data local name is not provided. It seems this functionality was changed in this library due to Apple's caching of the GAP device name, and them not providing developers control over clearing this cache, but not providing it via this library seems incomplete and excludes some valid use cases.
Describe the solution you'd like Provide access to both the local name defined in the advertisement data, and the device name defined in the Generic Access Profile as separate properties.