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

Camera doesn't work in iOS PWA mode #76

Closed
phong-et opened this issue Nov 9, 2018 · 15 comments
Closed

Camera doesn't work in iOS PWA mode #76

phong-et opened this issue Nov 9, 2018 · 15 comments
Labels

Comments

@phong-et
Copy link

phong-et commented Nov 9, 2018

Hi, I deployed my web app to heroku host
Camera load successfully on browser and pwa of android device, and it still works on iOS browser(Safari).
When I used iOS PWA mode (select "Add to Home Screen" Safari's right menu item) but it can't load camera correctly. I installed latest version (v1.3.0).
Have you ever met this issue ?
Thanks for your reading :)

@acrollet
Copy link

acrollet commented Nov 9, 2018

@phong-et this is unfortunately a limitation of Safari - WebRTC video is only allowed in Safari.

cf. webrtc/samples#933

@phong-et
Copy link
Author

phong-et commented Nov 10, 2018

@phong-et this is unfortunately a limitation of Safari - WebRTC video is only allowed in Safari.

cf. webrtc/samples#933

Thank you !
Maybe we will wait iOS upgrade new version or force app switch Safari browser to use camera stream

@gruhn
Copy link
Owner

gruhn commented Nov 10, 2018

@phong-et Arguably, user experience is not so good but note that the QrcodeCapture component also starts the camera on iOS 11.3+

@gruhn gruhn closed this as completed in 1c2dd52 Nov 10, 2018
@gruhn
Copy link
Owner

gruhn commented Nov 19, 2018

🎉 This issue has been resolved in version 1.3.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@phong-et
Copy link
Author

🎉 This issue has been resolved in version 1.3.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Did you confuse ? I saw you also commented this message in issue #78

@gruhn
Copy link
Owner

gruhn commented Nov 20, 2018

Ah dammit! Those comments are automatically posted by semantic-release when I close issues in commit messages. I referenced this issue in a commit where I updated the README. Sorry, this is not resolved 😕

@ghost
Copy link

ghost commented Apr 2, 2019

Is it possible to use HTML Media Capture instead of getUserMedia? It seems to be working even in PWA mode, although it is not real time.

@gruhn
Copy link
Owner

gruhn commented Apr 2, 2019

@a-rodin Yes. However, it only works in iOS 11.3+. See:

https://stackoverflow.com/questions/46228218/how-to-access-camera-on-ios11-home-screen-web-app

@phlegx
Copy link

phlegx commented Jan 20, 2020

@gruhn can you confirm, that it works on iOS 11.3+ in PWA mode?

@gruhn
Copy link
Owner

gruhn commented Jan 20, 2020

@gruhn can you confirm, that it works on iOS 11.3+ in PWA mode?

This only concerns QrcodeCapture. QrcodeStream is still not supported, sadly.

@gruhn gruhn reopened this Jan 27, 2020
@gruhn gruhn added the wontfix label Jan 27, 2020
@gruhn gruhn pinned this issue Jan 27, 2020
@GDanielRG
Copy link

Any news on this? I am also trying to use my PWA on ios and the scanner doesnt appears there, only on safari.

@phong-et
Copy link
Author

phong-et commented Mar 30, 2020

Any news on this? I am also trying to use my PWA on ios and the scanner doesnt appears there, only on safari.

I think Apple don't care about PWA, if PWA is so smooth, the App Store will be decreased revenue.
Viruscona is so engough challenge for them in this new year.
My honest advice for you is either finding another solution(capture image then read it to get data) or changing PWA to another platform

@NoahStahl
Copy link

I'm new to this and developing against a 7th gen iPad with iOS 13.4, and it seems to work well including in standalone/PWA mode. Perhaps this issue was recently addressed? I read this before trying and was worried it would block, but appears not to be the case. Can anyone else confirm the above applies with iOS Safari 13.4 -- it would be helpful to know if there is still something I'm missing or if I just lucked out on timing?

The only issue I see is a hang/black camera view when the app goes to background then comes back again via tapping home then the app icon.

@phong-et
Copy link
Author

phong-et commented Apr 19, 2020

I'm new to this and developing against a 7th gen iPad with iOS 13.4, and it seems to work well including in standalone/PWA mode. Perhaps this issue was recently addressed? I read this before trying and was worried it would block, but appears not to be the case. Can anyone else confirm the above applies with iOS Safari 13.4 -- it would be helpful to know if there is still something I'm missing or if I just lucked out on timing?

The only issue I see is a hang/black camera view when the app goes to background then comes back again via tapping home then the app icon.

Oh, it's a good news, I left PWA project because some its features aren't smooth with iOS device before, I also changed to android phone, hope anyone will test again this issue.

@gruhn
Copy link
Owner

gruhn commented Apr 20, 2020

@NoahStahl you're right! They seem to have fixed it in iOS 13.4:

https://bugs.webkit.org/show_bug.cgi?id=185448#c84

@gruhn gruhn closed this as completed Apr 20, 2020
gruhn added a commit that referenced this issue Apr 20, 2020
iOS 13.4 now supports stream api in home screen web apps

See: #76
@gruhn gruhn unpinned this issue Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants