Replies: 1 comment 2 replies
-
Hi @bonatoc To eliminate the "Unknown" display in this list, you need to look at adding a The 0x1800 service you are showing above is only available after connection, so would not impact the display in this list, which can only use data in the advertising payloads. I suspect that the peripheral firmware is correctly setting the GAP name (which iOS will use), and not specifying an advertised local name, which Android uses. You can confirm this by looking at the advertising payloads in nrf Connect. You can see in this screenshot here that there is a If you want further customisation of the display dialog (e.g., to remove the MAC address), you may want to consider implementing your own list using requestLEScan and Quasar. |
Beta Was this translation helpful? Give feedback.
-
Hello,
First of all thank you for this well-made library.
We're about to publish a free app (iOS and Android) built upon it (Quasar 2 with Capacitor).
I was wondering if it was possible to alter/modify the scan result that appears in the OS pop-up.
The app scans the devices using
requestLEScan()
withservices
, which contains the manufacturer's service ID, and all is well.In iOS,
the pop-up lists (correctly) the devices by their name:
In Android,
the devices list in the popup looks like this (below are the exact same devices listed in the iOS pop-up above):
It looks like iOS and Android are not looking for the same Generic Access (0x1800) characteristic.
iOS returns the value of Generic Access 0x2A00,
whereas Android returns the value of Generic Access 0x2A01 (hence the "Unknown" string returned)
Here's two NRF Connect screenshots:
Do we have any control over what's displayed in the Android "scan result" pop-up?
At the very least we would like to get rid of the MAC address of the device.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions