Giter Club home page Giter Club logo

Comments (4)

remonh87 avatar remonh87 commented on May 26, 2024 1

@werediver you are right the permissions are mandatory as defined by https://developer.android.com/guide/topics/connectivity/bluetooth-le#permissions.
This actually does not mean the location service should be enabled (settings => location). Some devices does require location (e.g. Nexus devices) else scan will not work that is why it is enabled by default since it is much safer. The RxAndroidBle also supports the usecase where it is possible to allow scans in case location is turned off which is fine by Android. For more background info see: dariuszseweryn/RxAndroidBle#106 and the issue logged in my previous comment. Let's discuss implementation details offline

from flutter_reactive_ble.

remonh87 avatar remonh87 commented on May 26, 2024

Thanks for reporting. By default location services is enabled and this is
because of https://issuetracker.google.com/issues/37065090 . However little devices on Android7+ would require the location services to be enabled so I think I can create an option in the scansettings that disables it. For safety reasons I will keep it on by default

from flutter_reactive_ble.

werediver avatar werediver commented on May 26, 2024

@remonh87 Aren't the ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission is mandatory on Android to perform BLE scanning for privacy reasons (location information can be inferred from a BLE scan)? My understanding is there is nothing that can be done to work this around (and I can only read the same from the link you provided).

Am I wrong? What exactly are you planning to implement? (though, we can discuss this in a chat or off-line)

In case my understanding is correct, the only thing we can do is improve our documentation. I assume we do not want to embed run-time permission management into this plug-in.

from flutter_reactive_ble.

espositofulvio avatar espositofulvio commented on May 26, 2024

I'm not sure how they are doing it but I have other apps who can perform a scan without location services enabled, just the locaiton permission granted. Indeed, the same operation with FlutterBlue on the same phone worked with location services disabled.

from flutter_reactive_ble.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.