Comments (4)
I figured out that only the location permission needs to be actually prompted and I found the guides for that.
from config-plugins.
@kabiskac is it required to add some (own) code to request the location permissions or does expo / react-native-ble-plx handle the request when it is required?
For iOS it requested the bluetooth permission at the moment I started using it ... without any extra code.
For Android it doesn't request anything and it fails with "no permission".
Could you please post a link to the guide you found for that? Is it possible to request only bluetooth permission with a fallback to location on older SDKs? Or is location still required for all (new) Androids?
from config-plugins.
@petrusek this plugin simply configures the native static permissions, you may find more useful API resources in the react-native-ble-plx repo.
from config-plugins.
Thank you @EvanBacon ... I will experiment with some code I found here https://github.com/PolideaPlayground/SensorTag/blob/master/src/Saga.js#L127 (linked from the ble-plx repo). I just wasn't sure if there is no documentation for it.
Btw. starting from API level 31 it seems it won't be necessary to request location permissions, so it would be great if the plugin would be able to also add this (maybe based on some params):
<uses-permission android:name="android.permission.BLUETOOTH_SCAN"
android:usesPermissionFlags="neverForLocation" />
I guess also my runtime code requesting the permission will need to be aware of the API level (Platform.Version
) to request the correct permission - fine location or scan (https://reactnative.dev/docs/permissionsandroid#permissions-that-require-prompting-the-user).
from config-plugins.
Related Issues (20)
- iOS deployment target was not taken from the configuration. HOT 7
- react-native-blob-util does not support SDK 48
- react-native-dynamic-app-icon plugin not compatible with Expo 48
- Expo Version 48.0.5 is not supported
- Add line in build.gradle file HOT 1
- Broken Android builds with the react-native-branch plugin [SDK 48] HOT 2
- No instrumentation runner found on device emulator-12622 for package *
- apk built, but not installable (on android 8.0.0) after the insertion of @config-plugins/react-native-webrtc HOT 1
- ExpoSDK49 peer dependency issue HOT 2
- expo:utils:scheme ios application Info.plist path: null +0ms
- @config-plugins/detox pre-install-hook failure: Permission denied HOT 5
- Firestore Promises never complete when running with detox on Android
- Intercom config plugin needed, the current one not maintained anymore! HOT 4
- Anyone managed to create config plugins for Adobe Mobile SDK HOT 2
- Add Expo SDK 50 support HOT 3
- @config-plugins/react-native-branch Support for Expo SDK 50 HOT 20
- uses-feature configration in android manifest file
- Expo Go Won't Run After Plug-in Install
- "@config-plugins/react-native-webrtc" facing issue in expo 50 HOT 1
- @config-plugins/react-native-branch retrieve Android AD_ID HOT 1
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 config-plugins.