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

Unable to Use Switch button on Camera Capture (File Upload) #9002

Closed
4 tasks
samholics opened this issue Nov 5, 2024 · 3 comments · Fixed by #9159
Closed
4 tasks

Unable to Use Switch button on Camera Capture (File Upload) #9002

samholics opened this issue Nov 5, 2024 · 3 comments · Fixed by #9159
Assignees
Labels

Comments

@samholics
Copy link

samholics commented Nov 5, 2024

Describe the bug
When trying to upload files using camera capture on the file upload feature, the "Switch" button for switch between front camera and to rear camera is not working. it is showing an error " Switch Camera is not available". it's happening on an IOS device. (safari)
it takes multiple clicks to get this error response.
currently, the camera opens as front camera by default
Also even if we close the camera capture session, the system was showing the camera is still on use. I have to stop the camera use manually.
To Reproduce
Steps to reproduce the behavior:

  1. Go to CARE on an IOS device (18.1) safari
  2. select a patient card
  3. Click on file upload and try to upload a file using camera capture
  4. click on the switch button
  5. See error
    Expected behavior
  • The switch button should be responsive on the first click
  • Back camera should be opened as default
  • Camera use should be stopped automatically when the camera capture session is closed
  • Delay in opening camera and capturing picture should be resolved. ( seen on android devices)

Screenshots
If applicable, add screenshots to help explain your problem.
link for the video: https://drive.google.com/file/d/1bRGGN4avusAWx3fNguyvl1nBQcD0O_g3/view?usp=sharing

Smartphone (please complete the following information):

  • Device: [e.g. iPhone13]
  • OS: [e.g. iOS18.1]
  • safari

Additional context
Add any other context about the problem here.

@samholics samholics changed the title Switch button on camera capture (file Upload) is not working Unable to Use Switch button on Camera Capture (File Upload) Nov 5, 2024
@abhistarck
Copy link

Hey @samholics l like to work on this issue

@github-project-automation github-project-automation bot moved this to Triage in Care Nov 5, 2024
@rithviknishad rithviknishad moved this from Triage to Up Next in Care Nov 5, 2024
@bodhish
Copy link
Member

bodhish commented Nov 10, 2024

@abhistarck if you are working on the issue can you link the draft PR here?

@JavidSumra
Copy link
Contributor

JavidSumra commented Nov 12, 2024

Hey @bodhish If no one is working on it can you assign it to me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants