Skip to content

fix(ios): Restart the CameraSession after a runtime error while it should be running - #4230

Open
OlimpiaZurek wants to merge 1 commit into
margelo:mainfrom
OlimpiaZurek:fix/ios-session-restart-after-runtime-error
Open

OlimpiaZurek wants to merge 1 commit into
margelo:mainfrom
OlimpiaZurek:fix/ios-session-restart-after-runtime-error

Conversation

@OlimpiaZurek

Copy link
Copy Markdown

This PR restarts an iOS CameraSession after an AVCaptureSession runtime error, as long as JS still wants it running.

Problem

On a runtime error (for example when media services are reset), AVFoundation stops the AVCaptureSession and posts runtimeErrorNotification. HybridCameraSession forwards the error through addOnErrorListener, but nothing calls startRunning() again. isActive doesn't change, so start() isn't called either, and the preview stays frozen or empty until the <Camera> is deactivated and activated again (e.g. by leaving the screen).

@vercel

vercel Bot commented Oct 21, 2026

Copy link
Copy Markdown

@OlimpiaZurek is attempting to deploy a commit to the Margelo Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant