-
Notifications
You must be signed in to change notification settings - Fork 15
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 Compatibility #15
Comments
Hi! |
have you tried with this package? |
@alessandro-bottamedi Thanks, did you already worked with that module? Is it stable? |
Yes. That module works. Thanks. 從我的 iPhone 傳送
|
@mmazzarolo |
Here's what I think I understand: In android 6.0 there are two different levels of permission: NORMAL and DANGEROUS. to detect beacons you must have bluetooth and localization active and accepted this permissions (I'm right??): android.permission.BLUETOOTH and android.permission. BLUETOOTH_ADMIN are in NORMAL level so it need to be only in the android.manifest. Here the list of permissions with its levels: https://developer.android.com/reference/android/Manifest.permission.html To make everything work i've used this: react-native-permissions i've discarded react-native-android-permissions because this not have iOs support. And i ask only for location permission in runtime it is sufficent for detecting ibeacon. I'm working now to make the right procedure to check if the app have permission on android and iOs, and check the geolocation and bluetooth state... Please correct me if i'm wrong |
Thank you Alessandro (sei italiano anche tu, giusto?), And thank you again for your time man 👍 |
(Si italiano, lo hai capito dal mio pessimo inglese o dal nome? 😉 ) The Estimote-Android-SDK docs has much more clear explanation:
Maybe you can insert an explanation like this in the README and the link for these Permissions Packages... Anyway i think that the Permissions Package must be separated from the others, so you can use it more times in your app for all your permissions needs. But its only my opinion. |
Dal nome, sono l'ultimo che può criticare l'inglese di qualcuno visto il mio, tranquillo!
Yup, gimme two sec |
Done! Closing this issue while waiting for an official solution, thanks @app2one and @alessandro-bottamedi for pointing out this issue. Feel free to post here if needed 👍 |
FYI now react native (0.33.0) support android M permission! |
@micheletedeschi Unexpected, nice! |
Yes and works! Only be sure to ask permission before start ranging or monitoring. You can find a permission example here: https://github.com/facebook/react-native/blob/0fb2ccfcc3e6babe28d7d1bcf4635ef2f9191eb1/Examples/UIExplorer/js/PermissionsExampleAndroid.android.js |
The module currently doesn't work on android 6. It seems start from android 6 additional permission is required on runtime bluetooth usage. Is anyone come up with any idea?
The text was updated successfully, but these errors were encountered: