Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peripheral.id on IOS is not the same on different device #157

Closed
flam182 opened this issue Jan 15, 2016 · 2 comments
Closed

Peripheral.id on IOS is not the same on different device #157

flam182 opened this issue Jan 15, 2016 · 2 comments

Comments

@flam182
Copy link

flam182 commented Jan 15, 2016

Hi,

When i scan a beacon (RADBeacon X2) on IOS devices differently , I find the UUID ( peripheral.id ) different.

On Android I still have the MAC address of the tag in " peripheral.id "

How on IOS, i can identify a beacon ?

@don
Copy link
Owner

don commented Jan 15, 2016

On iOS the UUID is generated and hides the MAC address. Different iOS devices scanning the same peripheral generate different UUIDs for the same peripheral. This is done intentionally Apple, there's not much you can do about it. If you control the peripheral side, the peripheral can have a service that give the phone the MAC address or some other unique identifier.

For iBeacons, the identifying information is in the advertising info, not the peripheral's id. You can parse the beacon data from kCBAdvDataManufacturerData key in the advertising data or try a different plugin that specifically handles beacons.

@flam182
Copy link
Author

flam182 commented Jan 26, 2016

Thanks @don

It's working with the plugin who handles beacons.

@don don closed this as completed Jan 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants