Camera.getPermissionsAsync() not prompting for permission on native app

Please provide the following:

  1. SDK Version: 41.0.0
  2. Platforms(Android/iOS/web/all): IOS (haven’t tested android)
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

When I use EAS build to build and deploy an IOS app to TestFlight, Camera.getPermissionsAsync() doesn’t prompt the user for permission to use the camera. Instead, it just hangs. This works fine using Expo Go. This also works using expo build (instead of eas build).

check your app.json for NSCameraUsageDescription and NSPhotoLibraryUsageDescription infoPlist params

Hey @debownor66, are you saying the promise never resolves for getPermissionsAsync? Also, you want to use the requestPermissionsAsync method to prompt for permission. The get methods check the status of the permission.

Cheers,
Adam

Never mind. It appears that the version of expo Camera was not compatible (I had the newest version and expo doctor said that it wasn’t compatible). Once I revered to the “compatible” version, all was fine.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.