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

How to change the frequency of the ranging scans ( iOS )? #115

Open
genjm opened this issue May 18, 2022 · 1 comment
Open

How to change the frequency of the ranging scans ( iOS )? #115

genjm opened this issue May 18, 2022 · 1 comment

Comments

@genjm
Copy link

genjm commented May 18, 2022

I've got the plugin working in my app but it is returning results every second, when I only really want a very infrequent update as once the user is within a location, they are unlikely to move for quite a long period of time.

Is it possible to set the app to scan every, say, 10 minutes?

Thanks.

@echb
Copy link

echb commented Oct 21, 2022

@genjm did you was able to scan on ios device?

    if (Platform.isIOS) {
      regions.add(Region(
        identifier: 'Apple Airlocate',
        proximityUUID: '253623D3-D090-B787-1744-DDFE8B6F6D6B', // this is the uuid i want to scan right?
        minor: 1,
        major: 15,
      ));
    } else {
      regions.add(Region(identifier: 'com.beacon'));
    }

    beacons = flutterBeacon.ranging(regions)
        .listen((event) {
      inspect(event);

    });

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