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

bug(CameraPlugin, Android) - endless loop when photo permission is denied with saveToGallery option #593

Closed
llendi opened this issue Sep 2, 2021 · 1 comment · Fixed by #599

Comments

@llendi
Copy link

llendi commented Sep 2, 2021

Bug Report

Plugin(s)

@capacitor/camera: 1.0.5

Capacitor Version

💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 3.2.2
@capacitor/core: 3.2.2
@capacitor/android: 3.2.2
@capacitor/ios: 3.2.2

Installed Dependencies:

@capacitor/cli: 3.0.0
@capacitor/core: 3.0.0
@capacitor/android: 3.0.0
@capacitor/ios: 3.0.0

[success] iOS looking great! 👌
[success] Android looking great! 👌

Platform(s)

Android

Current Behavior

saveToGallery is set to true

  1. User grants access to Camera
  2. User denies access to Photos
  3. cameraPermissionsCallback does not reject the call and repeats with do doShow(call)
  4. doShow(call) -> User is asked again for Photo Permissions -> 2.

Loop (especially if User says do not ask again when denying access)

Expected Behavior

  1. User grants access to Camera
  2. User denies access to Photos
  3. cameraPermissionsCallback rejects the call
@llendi llendi changed the title bug(CameraPlugin, Android) - endless loop when we want to save to gallery and photo permission is denied bug(CameraPlugin, Android) - endless loop when photo permission is denied with saveToGallery option Sep 6, 2021
@ionitron-bot
Copy link

ionitron-bot bot commented Sep 30, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the plugin, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants