Scirra / Construct-bugs

Public bug report submissions for Construct 3 and Construct Animate. Please read the guidelines then click the 'Issues' tab to get started.
https://www.construct.net
107 stars 83 forks source link

HTML5 iOS 17.4.1 UserMedia (camera) not working (PWA or browser) #7974

Closed andygilbert29 closed 6 months ago

andygilbert29 commented 6 months ago

Problem description

I have the latest iOS17 (17.4.1) on my phone and a previous PWA I had installed that opened the camera up using the UserMedia no longer works, just shows a black area. I have tried re-exporting using the latest C3 stable but to no avail.

I have also tried a new project (attached) to no avail.

Attach a .c3p

cam_test.zip

Steps to reproduce

  1. Export as HTML5.
  2. Load using iOS 17 ( 17.4.1) in browser.
  3. Save to homepage and open.

Observed result

Black area where camera should be.

Expected result

The camera to show up.

More details

Affected browsers/platforms:

iOS 17 as HTML5

IMG_0575

AshleyScirra commented 6 months ago

Are you seeing that it works OK in the Safari browser, but then fails when adding to home screen and running there?

andygilbert29 commented 6 months ago

Yes, although I have had it crash (or freeze) in Safari browser too, but generally appears to be working OK in Safari but fails when installed to home screen (vital to my app).

AshleyScirra commented 6 months ago

I'm afraid that is likely to be an issue with Safari rather than Construct, as it is running the same code in both cases. In this case I would advise reporting it directly to Apple at: https://bugs.webkit.org/