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.

expo-camera only works on desktop Safari - no chrome or mobile safari

See original GitHub issue

Summary

The Camera component only works on safari desktop, no chromium browsers. On mobile it fails alltogether.

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

managed

What platform(s) does this occur on?

Web

SDK Version (managed workflow only)

41

Environment

  Expo CLI 4.5.2 environment info:
    System:
      OS: macOS 11.2.3
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 15.14.0 - ~/.nvm/versions/node/v15.14.0/bin/node
      npm: 7.7.6 - ~/.nvm/versions/node/v15.14.0/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
    IDEs:
      Android Studio: 4.1 AI-201.8743.12.41.6953283
      Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild
    npmPackages:
      expo: ^41.0.1 => 41.0.1
      react: 16.13.1 => 16.13.1
      react-dom: 16.13.1 => 16.13.1
      react-native: https://github.com/expo/react-native/archive/sdk-41.0.0.tar.gz => 0.63.2
      react-native-web: ~0.13.12 => 0.13.18
    npmGlobalPackages:
      expo-cli: 4.5.2
    Expo Workflow: managed

Reproducible demo or steps to reproduce from a blank project

See this snack.

Reproduce by:

  1. Opening snack in safari, accept permission, see yourself through webcam
  2. Opening on chromium and/or mobile safari, no dice

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
jackkinsellacommented, Oct 1, 2021

Still broken in expo-camera v12

0reactions
github-actions[bot]commented, Apr 29, 2022

This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Expo <Camera> component does not work on the Web on ...
I found the issue thread here. The issue seems to be with Camera.requestCameraPermissionsAsync() that does not properly close the camera, ...
Read more >
Camera - Expo Documentation
expo -camera provides a React component that renders a preview for the device's front or back camera. The camera's parameters like zoom, auto...
Read more >
expo-av Video not showing up on iOS but working on Android
Video and video player is loading fine on Android, but on iOS nothing is rendered. I'm using Video from expo-av. I tried adding...
Read more >
Safari blocking webcam - Apple Community
It works just fine in Chrome (asked for permission and then the camera worked). Non-Safari apps (Quicktime, Zoom, Skype) work just fine ...
Read more >
How Run and Test React Native / Expo On Your Apple iOS ...
Once you have your Expo project up and running, start the local dev server in command line running npm run start in root...
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