Questions tagged [expo-permissions]
21 questions
13
votes
6 answers
Execution failed for task ':expo-permissions:compileDebugKotlin'
I am working on a React Native app where I included some expo libraries (bare workflow). I had successfully used expo-location, but now after I installed also expo-camera, the app won't build anymore with npm run android, did not try yet on ios.
It…

chris chris
- 131
- 1
- 1
- 5
5
votes
0 answers
how to access call log and sms in react native expo
how to open SMS-log and call-log in react native using expo..

Riyaz Mirza
- 149
- 1
- 2
- 8
3
votes
0 answers
Expo location permissions is not being granted after updating from Expo SDK 40 to SDK 42
My project was previously in Expo SDK 40, but I had to upgrade it to SDK 42. There is a component of my app where the user may want to see their current location on a map, but I keep getting an error thrown. The permission is granted in the initial…

MK_Pierce
- 916
- 2
- 10
- 26
3
votes
1 answer
Android crash: java.lang.RuntimeException: at android.app.ActivityThread.performResumeActivity
This bug occurred in internal testing (never seen in development) and has been reported so far for only one user, on one device whose specs are:
Xiaomi Redmi 6A
Android 8.1 (SDK 27)
It's also a ReactNative application built with (some probably…

Skj
- 101
- 2
- 9
2
votes
0 answers
Expo AV doesn't ask for microphone permission
I am developing an app using Expo and I'm encountering an issue with audio recording permissions. When I try to start recording by clicking a button in my app, I receive the following error message in the console:
LOG Requesting permissions..
LOG …

Web Crop
- 21
- 2
2
votes
0 answers
Expo Bare Workflow Android studio debugging Task :expo-permissions:compileDebugKotlin FAILED
enter image description here
The problem seems to be comes from here :
import com.facebook.react.modules.core.PermissionAwareActivity
Errors:
Task :expo-permissions:compileDebugKotlin FAILED
Unresolved reference: PermissionAwareActivity
I got all…

christan7474
- 21
- 1
2
votes
1 answer
How to request permissions in React Native / Expo?
EDIT: As of 9/12/2021, this method of requesting permissions has been depreciated for anything passed Expo SKD Version 40.
I am trying to request a user's location. I tried writing an async function to tell me if my request was processed, but it is…

MK_Pierce
- 916
- 2
- 10
- 26
2
votes
3 answers
CAMERA_ROLL Permission return denied even though user grant it
SDK Version: 35
Platforms(Android/iOS/web/all): Android
My app is trying to get photo from user’s camera. I simply use this code in my expo App before calling ImagePicker.launchCameraAsync
const { status } = await…

Va1iant
- 203
- 3
- 12
1
vote
1 answer
Error using Expo SDK 42: [Unhandled promise rejection: Error: Location provider is unavailable. Make sure that location services are enabled.] Android
I have enable location services on my Android device, but I keep getting the above error. It prompts me for my permissions request upon loading Expo (for the first time) but I still get the promise rejection. It used to work fine, but all of a…

MK_Pierce
- 916
- 2
- 10
- 26
1
vote
0 answers
Unhandled promise rejection type error undefined is not a function near ...navigator.geolocation.getcurrentpositionasync...]
My app requests permission to access a user's location in Screen A, so their location renders on a map in Screen B. When navigating to Screen B, I'm hit with a promise rejection, and the map not loading.
Below is my code:
Spins until current…

MK_Pierce
- 916
- 2
- 10
- 26
1
vote
1 answer
Possible Unhandled Promise Rejection (id:0) TypeError: undefined is not an object (evaluating 'ImagePicker.Permissions.askAsync)
I am building an iOS app using React-Native and Expo. I have figured out how to access the user's Photo Library but am unable to request permissions from their device. It instead just accesses the camera roll without asking, which is obviously not…

MK_Pierce
- 916
- 2
- 10
- 26
1
vote
1 answer
Get the status of the notification permission and programmatically turn on the notification by the settings screen of the app
So I have a settings screen that has a switch on it that can toggle if the notification is ON/OFF.
I can access the status of the notification but what I want to do is if I toggle the switch from OFF -> ON
I want it to programmatically turn ON the…

nani10
- 301
- 4
- 9
1
vote
1 answer
Are there any trade-offs between react-native-permissions and expo-permission?
I'm trying to select between react-native-permissions or expo-permissions for my project. They both work on iOS and Android but expo-permissions code is more concise. Other than that, are there any trade-offs between the two that I should be aware…

CodeHat
- 384
- 4
- 14
0
votes
0 answers
How to capture a specific portion of the screen when capturing an image in expo react native
Have you seen apps like Math Papa, or PhotoMath, where the camera captures a particular portion in view on the screen?
I want to implement the same but in my case the ScanningArea View.
I have tried different methods which hasn't been really…

Kelvin Nimely
- 15
- 5
0
votes
0 answers
Error while updating property 'coordinate' of a view managed by: AIRMapMarker
I am trying to run code which supposed to get my location in maps.
here's my code App.js
import React, { Component } from "react";
import { Platform, Text, View, StyleSheet } from "react-native";
import Constants from "expo-constants";
import * as…