From 7332717376debb873bf256669c88f7b37fb4fbb9 Mon Sep 17 00:00:00 2001 From: Norwin Roosen Date: Wed, 1 May 2019 15:42:14 +0200 Subject: [PATCH] disable in-app wifi search for iOS as it seems to be broken currently, and we have no capacity of debugging this --- src/providers/ota-wifi/ota-wifi.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/providers/ota-wifi/ota-wifi.ts b/src/providers/ota-wifi/ota-wifi.ts index 3176dce..51ba4bc 100644 --- a/src/providers/ota-wifi/ota-wifi.ts +++ b/src/providers/ota-wifi/ota-wifi.ts @@ -29,12 +29,10 @@ export class OtaWifiProvider { return WifiStrategy.Manual } - if ( - this.platform.is('android') || - this.platform.is('ios') && this.platform.version().major >= 11 - ) { + // FIXME: iOS 11+ supposedly allows WiFi API queries (see WifiWizard2 docs), + // but testing in emulator gives "not supported". might be an emulator issue? + if (this.platform.is('android')) return WifiStrategy.Automatic - } return WifiStrategy.Manual } @@ -83,7 +81,7 @@ export class OtaWifiProvider { } export enum WifiStrategy { - Automatic = 'Automatic', // android, iOS 11+ - Manual = 'Manual', // older iOS - Unavailable = 'Unavailable', // browser + Automatic = 'Automatic', // android + Manual = 'Manual', // iOS, browser + Unavailable = 'Unavailable', // currently unused }