Questions tagged [react-native-permissions]

58 questions
0
votes
0 answers

If facing issue of 'For IOS getting ERROR TypeError: null is not an object (evaluating 'NativeModule.requestPermission'

Then follow below step: a. Most importantly, remember to add "reactNativePermissionsIOS": ["Camera"] and "postinstall": "react-native setup-ios-permissions && pod-install" to your package.json. b. Run npm install. c. Delete…
Praveen Singh
  • 116
  • 1
  • 10
0
votes
1 answer

Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNPermissionsModule' could not be found

Im using react-native-permissions in ios build emulator (iphone 14 pro) but build always fails with error Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNPermissionsModule' could not be found. Verify that a module by this name is…
soulaimane
  • 21
  • 2
  • 3
0
votes
1 answer

Set up react-native-permissions for NX repo

I'm having trouble setting up react-native-permissions for the NX repo I added reactNativePermissionsIOS in package.json but when run app show "no permission handler detected". I am in react-native 0.71.11 and Xcode 14.3.
0
votes
1 answer

Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNPermissionsModule' couldn't be found

I am trying to run the code but this error keeps on showing up: ERROR Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNPermissionsModule' could not be found. Verify that a module by this name is registered in the native binary., js…
0
votes
0 answers

firebase and react-native-permission in react-native has error in IOS

I installed firebase for a react-native project. while installing i was need to add use_frameworks! to project. now i am going to add react-native-permission for using camera I faced bug i can't install it while using that line into my podfile. The…
0
votes
0 answers

premission prompt not opening in react native

I am creating a app and need external storage permission. I wrote the above code but it's not opening the prompt where we can allow or deny the permission. also I have added user permission in my manifest file.
0
votes
0 answers

Location popup still appears after enabling location from notification panel in React Native using 'react-native-geolocation-service'

I am developing a React Native application where I am using the 'react-native-geolocation-service' package to request location permission. When I open the app for the first time and haven't enabled the location, a popup appears with a Settings…
0
votes
0 answers

Why its giving me unavailable every time it calls the function?

I am trying to get user photos media permissions on IOS but it's giving me unavailable every time it calls the function how can I fix this problem and do things the correct way? I am using react-native-permissions package to do that... i also added…
0
votes
2 answers

PermissionAndroid.request() always returns never_ask_again without any prompt. React Native

I already tried results from most of the questions but none worked for me. I try accessing the WRITE_EXTERNAL_STORAGE permission using the PermissionAndroid.request method but it always returns never_ask_again as the result. My requestFile: try { …
0
votes
1 answer

react-native-permissions - iOS - requestNotifications()

What is the right way to use the "requestNotifications" function? Defined in the library "react-native-permissions". I tried: await requestNotifications({ sound: true, vibrate: true, alert: true, }); but…
iSaBo
  • 117
  • 9
0
votes
0 answers

What's the behavior of react-native-permissions requestNotifications method?

I am using react-native-permissions requestNotifications method to request permission from the user to receive notifications. try { const response = await requestNotifications(['alert', 'sound']); if (response?.status === 'granted' ) { …
0
votes
0 answers

Problem with permissions in iOS & iOS Simulator

I'm working on this Expo-managed App, where I implement a functionality using react-native-ble-plx. The workflow consisted of installing and generating everything related to the Expo Dev Client, in order to implement community libraries within the…
0
votes
1 answer

WRITE_EXTERNAL_STORAGE permission is always blocked in React Native android platform

App environment details- "react": "18.2.0", "react-native": "0.71.7", "react-native-permissions": "^3.8.0", "react-native-webview": "^12.0.2" Testing device details- Name - sdk_gphone64_x86_64 SDK version - 33 Android version- 13 I want to add…
0
votes
1 answer

Android: app not showing custom permission message

Hi i'm trying to request location permission, i added some custom message but app not showing custom message, it is always showing default message ``` const requestLocationPermission = async () => { try { const granted = await request( …
Joshi G
  • 453
  • 9
  • 16
0
votes
1 answer

react-native-permissions: If RESULTS.DENIED, is there a way to tell if user manually denied?

I'm looking at the following Android Flow for react-native-permissions. RESULTS.DENIED can be returned either in the scenario Is the permission already granted -> NO or Is the permission still requestable -> YES. In other words, it will return…