Questions tagged [react-native-permissions]

58 questions
0
votes
0 answers

react-native-permissions: Do you have to manually call request() after check()?

I'm looking at the following Android Flow for react-native-permissions. In the scenario Is the permission already granted -> NO, it returns RESULTS.DENIED. Does it then automatically call request(), or does the user have to manually call request()…
gkeenley
  • 6,088
  • 8
  • 54
  • 129
0
votes
0 answers

react-native-permissions: does request() automatically get called in permission flow?

I'm reading the documentation for react-native-permissions and I'm looking at the flow chart in Understanding Permission Flow. In the iOS flow, it says that once you call check(), if the permissions is requestable, it returns RESULTS.DENIED. It then…
0
votes
2 answers

Why does the react-native-permissions cannot request the permission in Android?

Information I tried to create an app to request permission in the react native side. There is a button in a screen to be clicked to check and request permission. Problem react-native-permission link:…
Trify
  • 1
  • 1
  • 1
0
votes
0 answers

react-native-permission message is not same as written in info.plist file in ios

I've created an ios webview app where the chatbot loads in and asks user for the microphone permission. using react-native-permission npm I've changed the pod files and info.plist files as mentioned in documentation. But I'm not getting the same…
0
votes
1 answer

Location permission prompt not showing in MIUI 12.1.4 Android 11

I'm having a problem in location permission prompt in MIUI 12.1.4 Android 11. It is not showing if there's PermissionsAndroid.PERMISSIONS.ACCESS_BACKGROUND_LOCATION. Also, I console log the result and it gave me this ... …
0
votes
1 answer

how to use expo-image-picker with android 11 scoped storage?

I was using expo-image-picker in my expo managed react native app. It was working fine. I just needed to use the camera to take new photo and to pick photo from gallery for my app. For these I was using the following…
0
votes
1 answer

Prompt user for permissions multiple times in React Native

I am writing an image picker in React-Native. For iOS, I would like the image picker to show the user the option of updating their permissions every time it is toggled open. import CameraRoll from…
0
votes
0 answers

Not able to see images from android storage in react native

AndroidManifest.xml App.js const App = () => { const [uri, setUri] =…
0
votes
2 answers

Android build is rejected in play store due to READ_SMS permission + React Native

Our app is rejected in play store as we are using the below permission. Our requirement is to send a message to customer care support from user app in a standard format, and we will…
0
votes
1 answer

Tried to use permissions API while not attached to an activity

I am trying to save captured picture to my device gallery and fetch it back to display in my project. But the mean issue here is permission deny issue. I have setup "AndroidManifest.xml" with these: but still I still get error, here is my…
0
votes
0 answers

React Native no ask me for permission dialogue

I'm trying to get the location of my user on android using React Native. I have added the location privacy description in the plist, and I have tried various codes but none show the dialogue asking permission. Right now, I'm using this library:…
0
votes
2 answers

Using React-native-permissions I get this error when trying to build with xcode ld: library not found for -lPermission-LocationWhenInUse

I have tried manual linking as described here but I still get the error library not found for -lPermission-LocationWhenInUse
-1
votes
2 answers

JS: How to make my code wait until this function has returned?

I have the following code in my React Native app for checking if permission is granted for a camera on Android: function hasAndroidPermission() { checkPermission('camera') .then(res => { if (res === RESULTS.DENIED) { …
1 2 3
4