From a2273ba3404827cae53e932b5faa2efbcd91ed98 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Fri, 15 May 2020 08:59:07 +0200 Subject: [PATCH] MOBILE-2995 qr: Fix camera not stopped and black screen in iOS --- src/app/app.scss | 4 ++++ src/providers/utils/utils.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/src/app/app.scss b/src/app/app.scss index 064b7bfdb..6d1fe00fc 100644 --- a/src/app/app.scss +++ b/src/app/app.scss @@ -1287,5 +1287,9 @@ ion-app.app-root { ion-content, ion-backdrop, ion-modal:not(.core-modal-fullscreen), core-ion-tabs { display: none; } + + &.ios .ion-page.show-page~.nav-decor { + display: none; + } } } diff --git a/src/providers/utils/utils.ts b/src/providers/utils/utils.ts index ac9fb4622..8e959d845 100644 --- a/src/providers/utils/utils.ts +++ b/src/providers/utils/utils.ts @@ -1534,6 +1534,7 @@ export class CoreUtilsProvider { // Hide camera preview. document.body.classList.remove('core-scanning-qr'); this.qrScanner.hide(); + this.qrScanner.destroy(); this.qrScanData.observable.unsubscribe(); // Stop scanning.