Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In-app camera does not open when location permission is revoked #5273

Closed
RitikaPahwa4444 opened this issue Aug 30, 2023 · 4 comments · Fixed by #5313
Closed

In-app camera does not open when location permission is revoked #5273

RitikaPahwa4444 opened this issue Aug 30, 2023 · 4 comments · Fixed by #5313
Labels

Comments

@RitikaPahwa4444
Copy link
Collaborator

Summary

The in-app camera should open even when the user does not grant location permission to the app. While this works fine in the first run, it does not open when the permission is denied for the second time or revoked later. For more details, you may check this comment.

Steps to reproduce

  1. On a fresh installation, tap the in-app camera button
  2. Allow the app to record location for in-app shots
  3. Tap "Deny" when asked for location permission. The in-app camera will open with a toast
  4. Try to open the in-app camera again and repeat step 2

Expected behaviour

The in-app camera should open again with the same toast.

Actual behaviour

The in-app camera does not open at all.

Device name

Redmi 5A

Android version

8.1.0

Commons app version

master and prodDebug

Device logs

No response

Screen-shots

No response

Would you like to work on the issue?

None

@srishti-R
Copy link
Contributor

Tested this on android 12 emulator, I think this got fixed by #5299

@RitikaPahwa4444
Copy link
Collaborator Author

Tested it on my Android 8.1 device. For me, the in-app camera now opens up with a toast without asking for location permission even on a fresh installation :(

@sivaraam
Copy link
Member

I observe the behaviour similar to what Ritika mentions. On a fresh install, the location permission request dialog opens as expected but the "Turn on location?" dialog does not open. The app proceeds to trigger the image capture despite this. Weirdly, when we come back from the upload screen the app shows the "Turn on location?" dialog. The dialog should've been shown before the image capture was triggered. Here's a screen recording that demonstrates the issue.

App-turn-on-location-shown-later.mp4

Also, the "Nearby" section of the app also does not seem to be asking for the "Turn on location?" dialog either.

@RitikaPahwa4444
Copy link
Collaborator Author

RitikaPahwa4444 commented Sep 25, 2023

Interestingly, from the screencast, #5255 seems fixed now 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants