From 21bec015b75c31a4edbc0c975d19ac2d8c3caea9 Mon Sep 17 00:00:00 2001 From: Timothy Le Bon Date: Tue, 31 Jan 2023 18:32:15 +0100 Subject: [PATCH] feat: allow iOS runtimes --- packages/commons/src/util/Runtime.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/commons/src/util/Runtime.ts b/packages/commons/src/util/Runtime.ts index cc2d80b374..12516d18e4 100644 --- a/packages/commons/src/util/Runtime.ts +++ b/packages/commons/src/util/Runtime.ts @@ -88,6 +88,9 @@ export class Runtime { if (Runtime.isFranz()) { return false; } + if (Runtime.isIOS() && Runtime.getBrowserName() === BROWSER.SAFARI && Runtime.getBrowserVersion().major >= 11) { + return true; + } return Object.entries(WEBAPP_SUPPORTED_BROWSERS).some(([browser, supportedVersion]) => { const isBrowserSupported = Runtime.getBrowserName() === browser;