expo-camera only works on desktop Safari - no chrome or mobile safari
See original GitHub issueSummary
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
Reproduce by:
- Opening snack in safari, accept permission, see yourself through webcam
- Opening on chromium and/or mobile safari, no dice
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Still broken in
expo-camera
v12This 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.