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

[iOS] It is possible to get iBeacon ManufacturerSpecificData in iOS ? now only ServiceData. #742

Open
densen2014 opened this issue Sep 13, 2023 · 2 comments
Labels

Comments

@densen2014
Copy link

densen2014 commented Sep 13, 2023

Steps to reproduce

  1. code
adapter.DeviceAdvertised += OnDeviceAdvertised;
await adapter.StartScanningForDevicesAsync();

OnDeviceAdvertised handler have a look at the advertisement records:

        private async void OnDeviceAdvertised(object sender, DeviceEventArgs args)
        {
            var dev = args.Device;
            var adRecs = dev.AdvertisementRecords;
            foreach (var adrec in adRecs)
            {
                Debug.WriteLine(adrec);
            }
        }

Expected behavior

if has ManufacturerSpecificData we can get data and location tags, like UUID ,Major,Minor, in other APP from apple appstore can display these parameters, i am not sure if there are other ways to bypass ble core on ios?

image

image

image

After querying the data, I found that the iOS system is deliberately hidden.

#101

The distance measurement function of iBeacon be introduced into the dotnet-bluetooth-le API?

Actual behavior

only ServiceData can be get in iOS. ( android and uwp work fine!)

Crashlog

Configuration

Version of the Plugin: 3.0.0-beta.6

Platform: iOS 16.6.1 , VS2022 + MAUI

Device: iPhone 13 Pro

@smsissuechecker
Copy link

Hi @densen2014,

I'm the friendly issue checker.
Thanks for using the issue template 🌟
I appreciate it very much. I'm sure, the maintainers of this repository will answer, soon.

@janusw janusw added the os:iOS label Sep 15, 2023
@janusw
Copy link
Member

janusw commented Sep 15, 2023

Actual behavior

only ServiceData can be get in iOS. ( android and uwp work fine!)

In general, I can see BLE advertisements with ManufacturerSpecificData on iOS, e.g. via the BLE.Client.Maui sample app.

#101 seems to indicate that iOS hides certain advertisement data from iBeacon devices. I have no such device here to verify this.

If there are apps that show this data, it must be possible to obtain it somehow (maybe via the CoreLocation API?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants