On first installation of the app it shows connect for MAC, instead of device Id. How to resolve this
That is intentional
Can you please explain why, so that I can use it better in my app!
Apple does not expose the MAC address of remote devices and device ID can be different across each iOS device.
on click of "connect for MAC" option it detects device but not device Id and we can connect to that device without any problem. Clicking back it shows device Id there. This is quite strange behavior so I want to know how to resolve this.
This is not strange behavior at all. This is exactly what Eric described and as intended by Apple and our MetaBase App.
An Apple App doesn't know the BLE ID until after the first time it connects to the sensor (Bluetooth peripheral/slave).
Here is a relevant discussion on this topic: https://forums.developer.apple.com/thread/105064 Another one: https://stackoverflow.com/questions/18973098/get-mac-address-of-bluetooth-low-energy-peripheral
If you try out the Android or Windows MetaBase App you will not see this because those OSs do not restrict Bluetooth IDs due to privacy.
@Laura said: This is not strange behavior at all. This is exactly what Eric described and as intended by Apple and our MetaBase App. An Apple App doesn't know the BLE ID until after the first time it connects to the sensor (Bluetooth peripheral/slave). Here is a relevant discussion on this topic: https://forums.developer.apple.com/thread/105064 Another one: https://stackoverflow.com/questions/18973098/get-mac-address-of-bluetooth-low-energy-peripheral If you try out the Android or Windows MetaBase App you will not see this because those OSs do not restrict Bluetooth IDs due to privacy.
@Laura said: This is not strange behavior at all. This is exactly what Eric described and as intended by Apple and our MetaBase App.
thank you
Comments
That is intentional
Can you please explain why, so that I can use it better in my app!
Apple does not expose the MAC address of remote devices and device ID can be different across each iOS device.
on click of "connect for MAC" option it detects device but not device Id and we can connect to that device without any problem. Clicking back it shows device Id there. This is quite strange behavior so I want to know how to resolve this.
This is not strange behavior at all. This is exactly what Eric described and as intended by Apple and our MetaBase App.
An Apple App doesn't know the BLE ID until after the first time it connects to the sensor (Bluetooth peripheral/slave).
Here is a relevant discussion on this topic: https://forums.developer.apple.com/thread/105064
Another one: https://stackoverflow.com/questions/18973098/get-mac-address-of-bluetooth-low-energy-peripheral
If you try out the Android or Windows MetaBase App you will not see this because those OSs do not restrict Bluetooth IDs due to privacy.
thank you