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

iPadOS black screen after installation to homescreen, works on safari #560

Open
shprink opened this issue Apr 25, 2024 · 5 comments
Open
Labels

Comments

@shprink
Copy link

shprink commented Apr 25, 2024

Describe the bug

On the latest iPad version (17.4.1):

reproduction VIDEO: https://photos.app.goo.gl/RkvrR1cjtkzAcgck6

Expected behavior

same as in safari

@shprink shprink added the bug label Apr 25, 2024
@werthdavid
Copy link
Member

Hey, I tried with my iPad Air 4th gen 17.4.1 and I cannot reproduce it... what's happening on your phone (iOS) if you do the same?

@shprink
Copy link
Author

shprink commented Apr 29, 2024

It works on iOS iphone.

I have this iPad version with v17.4.1: https://www.apple.com/fr/ipad-10.9

there is no error on the console unfortunately

@shprink
Copy link
Author

shprink commented Jul 18, 2024

OK I know more now.

it seems to be related to WebRTC spec not being usable when installed as a PWA on ios safari: zxing-js/browser#122

When not installed it works correctly

@shprink
Copy link
Author

shprink commented Jul 18, 2024

I tried to run the app with webrtc shim https://github.com/webrtc/adapter but so far I could not fix the issue

@wildhart
Copy link

I was getting the same error on iOS 17.6.1. As per this comment I fixed it simply by calling this code before starting the scanner:

const camera = await navigator?.mediaDevices?.getUserMedia({ video: true }).catch((e: any) => ...);

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

3 participants