You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that you use the local name in the tracing of contacts with an iOS app that is in the background, and wondered whether this does actually work?
Well, I fear that you may be right.
The funny thing is, that this code actually works: The Android device detects whether the device is on foreground or background. Unfortunately, the reason for that is, that the device name is somehow in the Bluetooth cache and the app obviously still receives the name of it.
I think that the fix will lead to various issues with other BLE devices that may not function correctly if a device is connected to them, it also may lead to a high battery usage.
EDIT: from experience, when I walk around on the streets in Vienna, I see something like 50 new devices every 10 meters of walk appear, most of them are Win10 PCs (~60%) advertising but lots of IPhones (~35%). If you restrict this to iOS devices, this will at least limit the problem.
Thank you for the great project.
I noticed that you use the local name in the tracing of contacts with an iOS app that is in the background, and wondered whether this does actually work?
novid20-android-sdk/novid-sdk/src/main/java/org/novid20/sdk/ble/BleClientManager.kt
Line 254 in 091a238
According to the documentation of Core Bluetooth, the local name is not advertised when the app is running in background:
https://developer.apple.com/documentation/corebluetooth/cbperipheralmanager/1393252-startadvertising?language=objc
Maybe you could check whether the hash of the overflow area matches the UUID of the user ID service and then connect to the iOS device to check whether the service and characteristic really exists?
Here is at least some information about the overflow area:
https://stackoverflow.com/questions/29418388/ble-advertising-of-uuid-from-background-ios-app
If this already works and I simply did miss something here, please ignore this :)
The text was updated successfully, but these errors were encountered: