Questions tagged [react-native-permissions]

58 questions
10
votes
2 answers

react-native-permissions returning RNPermissions null in react-native expo project

I am new to Expo and I can't tell whats the problem here, I am good enough with Android and that I am trying to use the react-native-qrcode-scanner in a newly created blank react-native expo project. I haven't touched anything inside the project,…
user7037473
4
votes
1 answer

React Native PermissionsAndroid doesn't include READ_MEDIA_IMAGES. How to work around this?

I'm using react-native-camera-roll/camera-roll@5.2.0 in my React Native app. For Android 13, the READ_EXTERNAL_STORAGE permission has been replaced by READ_MEDIA_IMAGES. I use the following code to check if permission has been granted: const…
4
votes
2 answers

"No permission handler detected." error using react-native-permissions with Expo and dev-client build

I am trying to get react-native-permissions in my dev-client build of Expo to run. The build succeeds, but when I start the app, I am getting a relatively generic "No permission handler detected." error. Research suggest that adding permissions to…
4
votes
1 answer

what does buttonNegative and buttonNeutral do in PermissionsAndroid react native

const granted = await PermissionsAndroid.request( PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION, { title, message, buttonNeutral: "Ask Me Later", buttonNegative:"Cancel", buttonPositive: "OK" …
shubhamkes
  • 516
  • 5
  • 12
4
votes
0 answers

react-native-image-picker: value returned from showImagePicker doesnt tell you if user blocked permission (Android)

I want user to select a profile picture using either camera or photo gallery. I use react-native-image-picker to give user choice.....using below code: import ImagePicker from 'react-native-image-picker'; export const _imagePickHandler = userId =>…
4
votes
3 answers

Inavlid react Native permission ios.PERMISSION.CAMERA

I am using react-native-qr-code-scanner to add QR scanner functionality in my app. I followed all the instaruction ther & everything works fine on android but when i build my app on ios app is not able to find the RNPermissions library so i manually…
anekix
  • 2,393
  • 2
  • 30
  • 57
3
votes
1 answer

Checking Previously Granted Permissions in React Native using PermissionsAndroid API

Is there a way to check if a list of permissions have already been granted in React Native using the PermissionsAndroid API, similar to how PermissionsAndroid.requestMultiple() can be used to request multiple permissions? I'm looking for a method…
Abdoul
  • 125
  • 3
  • 8
3
votes
1 answer

React Native Webview (camera, getUserMedia) double request of permissions on iOS 15

What we do? We are building a React Native application for both iOS and Android platforms. The application has an external website with camera manipulations inside, opened via react-native-webview module. From our experiments we observed that to…
3
votes
0 answers

Why won't React Native package upgrade to latest version?

I'm using react-native-permissions in my React Native app, and according to the docs it's on version 3.3.1. I run npm i react-native-permissions and the version installed is 1.2.1. I'm on react-native@0.63.4. Does this prevent me from being able to…
gkeenley
  • 6,088
  • 8
  • 54
  • 129
2
votes
1 answer

React Native: TurboModuleRegistry.getEnforcing(...): 'RNPermissionsModule' could not be found

I have a react-native app with expo. when i install react-native-permissions its giving me this error: Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNPermissionsModule' could not be found. Verify that a module by this name is…
Mark
  • 51
  • 6
2
votes
1 answer

React native permissions always return unavailable on ios simulators

I have an application that uses react-native-permissions. Basically I have a modal regarding location on my App.js and it will display as long as the user didn't select the "Always allow" option in device settings. It works well on android however…
Euph
  • 339
  • 1
  • 4
  • 19
2
votes
1 answer

React Native - How to request App Tracking Transparency permissions on iOS?

The solution mentioned here talks about how to set this up with the ATTrackingManager class, however, that is not exposed directly to React Native. Using the react-native-tracking-transparency package is causing an issue for me at build…
2
votes
0 answers

React Native Permission instant crash on request (IOS)

I am using the library react-native-permissions. Originally I wanted to get permissions for sending notifications, but ran into many build errors and decided to at least get Contact permissions. I followed the steps on the…
ozansozuoz
  • 217
  • 1
  • 13
2
votes
1 answer

React native Location permission dialog does not show in Android

I am using React native permission package for my app. I want to display Permission dialog both Android and ios. With this package, I can see my Iphone Simulator's permission dialog but I don't see anything is Android Emulator. I don't get it what I…
2
votes
2 answers

Error: react-native-permissions: NativeModule.RNPermissions is null. Trying to use react-native-qrcode-scanner

I have tried everything I could find and nothing worked. What's happening? I am trying to use the QRCodeScanner Component and this happens, Without it, my app runs fine. How can it be reproduced? Make a new expo init Test then install the basics and…
1
2 3 4