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

Android 6.0 not in LeScanCallback #17

Closed
WeberHsu opened this issue Jul 4, 2016 · 7 comments
Closed

Android 6.0 not in LeScanCallback #17

WeberHsu opened this issue Jul 4, 2016 · 7 comments

Comments

@WeberHsu
Copy link

WeberHsu commented Jul 4, 2016

In Android 6.0 appear information log below:
D/BluetoothAdapter: startLeScan(): null
And the program not in LeScanCallback (onLeScan), what's wrong with it ?
thanks~

@alt236
Copy link
Owner

alt236 commented Jul 4, 2016

Have you granted your app the runtime permissions?

@WeberHsu
Copy link
Author

WeberHsu commented Jul 4, 2016

Yes
2016/7/4 下午5:35於 "Alexandros Schillings" notifications@github.com寫道:

Have you granted your app the runtime permissions?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#17 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AGQyXFEAZWQo9zFX6qcG_6noCINL2lVQks5qSNPQgaJpZM4JEMWp
.

@WeberHsu
Copy link
Author

WeberHsu commented Jul 4, 2016

I have set in the AndroidManifest.xml
and bluetooth permission is not dangerous permission, and it can not be granted in runtime permission

@alt236
Copy link
Owner

alt236 commented Jul 4, 2016

Good point.

Does the sample app work for you?

Also, what device are you using? Does it support BTLE?

@WeberHsu
Copy link
Author

WeberHsu commented Jul 4, 2016

The app in play store is OK, my device is SONY Z5
I think it is support BTLE

@wdh-1025
Copy link

@WeberHsu Android 6.0 need to increase the "ACCESS_COARSE_LOCATION" permissions, and obtained the permission to ensure it

@alt236
Copy link
Owner

alt236 commented Oct 20, 2016

@wdh-1025 Good point. That is the solution for 6.0+.

@alt236 alt236 closed this as completed Jan 24, 2017
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

3 participants