Comments (4)
@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.
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.
@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.
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)
- Crash on permission change HOT 1
- 'readRssi' Method Not Defined for 'ReactiveBlePlatform' HOT 6
- protobuf ^3.1.0 support HOT 2
- scanForDevices should not use 'assert(!central.isScanning)' HOT 2
- A problem occurred evaluating project ':reactive_ble_mobile'. HOT 3
- 我编译遇到了下面的报错
- compileSdkVersion is not specified HOT 2
- How to connect with duplicate UUID characteristics via flutter_reactive_ble? HOT 1
- iOS connectToDevice() after finding device ID fails with PlatformException HOT 1
- Intermittent Read Failure Leading to Automatic Disconnection with flutter_reactive_ble HOT 1
- The BLE app does not disconnect immediately but only after smartphone locked HOT 1
- reactive ble is not wroking scan mode in ios release mode HOT 1
- Write issue on Nordic UART BLE HOT 1
- Automatically disconnect when background service stop HOT 2
- BLE IOS Running on Background Mode is unstable
- Example app not working HOT 1
- Add privacy manifest for Apple HOT 1
- support for Eddystone BLE protocol
- Devices not paired in Android return connected with the stream ConnectionStateUpdate HOT 1
- Android low level library crash when the BLE device disconnects unexpectedly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_reactive_ble.