Bug 254129 - [PWA] Video stream stops when control center is opened
Summary: [PWA] Video stream stops when control center is opened
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: Safari 16
Hardware: iPhone / iPad iOS 16
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-03-18 22:42 PDT by kaletise
Modified: 2023-03-30 00:32 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kaletise 2023-03-18 22:42:00 PDT
Context:
I have a web app with a hash router. Once I am done analysing the camera stream and showing results my router changes the hash to a result route. When I come back to the camera view, I am prompted for the camera permissions again, even though I never left the web app. This behaviour does not happen in Safari for iOS.
I am working on a web app that uses camera. I noticed that when the application is running in standalone PWA mode, the video stream stops when either control center or notification center is opened, or even being opened. After this happens, user have to forcefully close the PWA from App Switcher and open it again in order for PWA to start the video stream again.

Steps to reproduce:
1) Open https://qrcodescan.in in Safari and add it to the home screen
3) Open the PWA from home screen and give it camera permission once it asks
4) Open control center/notification center, then close it

In standalone mode: video stream stops until the app is forcefully closed and reopened
In browser mode: video stream does not stop
Comment 1 Radar WebKit Bug Importer 2023-03-25 22:42:13 PDT
<rdar://problem/107233659>
Comment 2 Chris 2023-03-30 00:32:53 PDT
(In reply to kaletise from comment #0)
> Context:
> I have a web app with a hash router. Once I am done analysing the camera
> stream and showing results my router changes the hash to a result route.
> When I come back to the camera view, I am prompted for the camera
> permissions again, even though I never left the web app. This behaviour does
> not happen in Safari for iOS.
> I am working on a web app that uses camera. I noticed that when the
> application is running in standalone PWA mode, the video stream stops when
> either control center or notification center is opened, or even being
> opened. After this happens, user have to forcefully close the PWA from App
> Switcher and open it again in order for PWA to start the video stream again.
> 
> Steps to reproduce:
> 1) Open https://qrcodescan.in in Safari and add it to the home screen
> 3) Open the PWA from home screen and give it camera permission once it asks
> 4) Open control center/notification center, then close it
> 
> In standalone mode: video stream stops until the app is forcefully closed
> and reopened
> In browser mode: video stream does not stop

this bug is mentioned in https://bugs.webkit.org/show_bug.cgi?id=252465