Code Monkey home page Code Monkey logo

Comments (7)

uKL avatar uKL commented on July 30, 2024 2

Yes, you should handle them by yourself. It would be hard to do it in the library because each application has it's own design. Making an universal one might not be the best idea.

There are libraries for Runtime Permissions that might be a good choice for you.

from rxandroidble.

uKL avatar uKL commented on July 30, 2024

Hey!

Starting from Android 6.0 it is required to hold ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION in order to get scan results of device mac address. This is to strengthen user privacy. Even more, it is required that the user will have location services enabled.

You can read more [here](http://developer.android.com/reference/android/bluetooth/le/BluetoothLeScanner.html#startScan%28java.util.List<android.bluetooth.le.ScanFilter>, android.bluetooth.le.ScanSettings, android.bluetooth.le.ScanCallback%29).

from rxandroidble.

klemzy avatar klemzy commented on July 30, 2024

Hi,

I see, was not aware of that. Thanks!

-- 
Klemen
Sent with Airmail

On 7 April 2016 at 15:41:53, Paweł Urban ([email protected]) wrote:

Hey!

Starting from Android 6.0 it is required to hold ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION in order to get scan results of device mac address. This is to strengthen user privacy. Even more, it is required that the user will have location services enabled.

You can read more here.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub

from rxandroidble.

uKL avatar uKL commented on July 30, 2024

We handle it internally (both permission and enabled state) and BleScanException is emitted with code LOCATION_PERMISSION_MISSING or LOCATION_SERVICES_DISABLED.

from rxandroidble.

mars3142 avatar mars3142 commented on July 30, 2024

And why don't you handle the "permission request" in your library? Do I have to handle by myself?

from rxandroidble.

wanzi2016 avatar wanzi2016 commented on July 30, 2024

I always get the hint: Location services needs to be enabled on Android 6.0
How can I enable the location services?
Thanks

from rxandroidble.

wanzi2016 avatar wanzi2016 commented on July 30, 2024

Oh, never mind, I just enable it (By enable GPS...)
Thanks for the source anyway.

from rxandroidble.

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.