MediaRecorder as PWA on iOS

Hey,

very strange problem I have on iOS when shared web as an app (pwa) to home screen. Whenever I use it via safari browser on iPhone, it works 100% fine every time. However, when I put it as an app on home screen, first time I open it it works fine, when i close it and reopen again, it just doesnt start recording. I have to restart my phone for it to work. So it works one time, I guess somehow it doesnt end stream or something, but in code I've tried all the possible ways to close and clean the track. tried GPT, Claude, Gemini solutions. nothing worked, it just works 1 time as PWA. my last hope is someone else encountered this issue and may try to help me ?

https://pastebin.com/85i2L2vH

HI eimasdev, would it be possible to file a feedback (Apple dev) or a bug report in https://bugs.webkit.org?

It will be easier to get the discussion in https://bugs.webkit.org. I am unclear what the issue might be. We had issues with getUserMedia not always working in PWA.

You can try to reduce the test case, or inspect the various objects (like MediaStreamTracks) you are handling via web inspector.

Thanks

MediaRecorder as PWA on iOS
 
 
Q