question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android - Denying permissions to use camera is not handled

See original GitHub issue

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Expected Result:

Trying to use the camera, but you have previously denied permissions the app should clearly indicate that you need to update permissions in settings (since we’re no longer allowed to ask)

Actual Result:

You try to use the camera the attachment menu just closes without explanation

Action Performed:

  1. Have a freshly installed app, or set app camera permissions to “deny” in settings
  2. Open a Chat
  3. Select the plus (+) button
  4. Select “Add attachment”
  5. Select “Take Photo”
  6. You are prompted for permissions
  7. Select “Deny & don’t ask again”
  8. You can optionally restart the app at this point (it won’t matter)
  9. Select the plus (+) button
  10. Select “Add attachment”
  11. Select “Take Photo”
  12. The menu closes. Nothing else happens. You see no message.

Workaround:

The user needs to go in Android settings, search for “permissions” or go to e.cash settings and manually set permission to “allow”

Platform:

Where is this issue occurring?

Web iOS [x] Android Desktop App Mobile Web

Version Number: 1.0.10-2 (First sawed on 1.0.6-3) Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation

https://user-images.githubusercontent.com/12156624/113288348-82903b80-92f7-11eb-8c11-61e9ef9c4fbe.mp4


For comparison on iOS this works correctly and you’d see this when you have denied permissions: image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kidrocacommented, Apr 1, 2021

I’ve already addressed this in #2114 as it was directly related

0reactions
peterdbarkerUKcommented, Apr 12, 2021

Sweet, thanks for clarifying other Peter! Closing this issue out 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android "Permission Denial: can't use the camera"
First Option you have regarding permissions is to go to the android settings of that specific application and grant it all permissions ......
Read more >
Change app permissions on your Android phone
On your phone, open the Settings app. · Tap Privacy And then Permission manager. · Tap a permission type. If you allowed or...
Read more >
Permissions updates in Android 11 - Android Developers
Starting in Android 11, whenever your app requests a permission related to location, microphone, or camera, the user-facing permissions dialog contains an ...
Read more >
Android 11 permission "Ask every time" doesn't prompt the ...
Open cell phone, open the app and call the checkPermission again (click on scann button); Result object has property denied set to true....
Read more >
App Permissions on Android & How to Control Them - AVG
Concerned about what a particular app can access on your phone? Here's how to manage permissions on a specific app: Open Settings and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found