ionic-team / capacitor-plugins

Official plugins for Capacitor ⚡️

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Camera - taking a photo with .getPhoto() in macOs is having delays

c27gc opened this issue · comments

Bug Report

Plugin(s)

"@capacitor/camera": "^5.0.0",

Capacitor Version

💊   Capacitor Doctor  💊

Latest Dependencies:

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

Installed Dependencies:

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

Platform(s)

  • iOs
  • Android
  • Web

Current Behavior

When I take a picture from the browser on the macOS operating system, the getPhoto() method takes several seconds before returning the image. This situation often causes users to click the take photo button again producing an error.

peek_1

After you click the button to take a picture between 3 and 4 seconds passes before obtaining a response.

Expected Behavior

the expected behavior is that the app takes the picture immediatly, as it happens on windows where this problem does not occur ( see attached gif )

ezgif-6-ec49e009ae

Code Reproduction

Captura de pantalla 2024-04-24 a las 8 33 18 p  m

This issue has been labeled as type: bug. This label is added to issues that that have been reproduced and are being tracked in our internal issue tracker.