diff --git a/camera/src/web.ts b/camera/src/web.ts index 1bb1032002..9c6293056f 100644 --- a/camera/src/web.ts +++ b/camera/src/web.ts @@ -56,6 +56,8 @@ export class CameraWeb extends WebPlugin implements CameraPlugin { ) { if (customElements.get('pwa-camera-modal')) { const cameraModal: any = document.createElement('pwa-camera-modal'); + cameraModal.facingMode = + options.direction === CameraDirection.Front ? 'user' : 'environment'; document.body.appendChild(cameraModal); try { await cameraModal.componentOnReady();