From 4aea82c2ab0afdebd93ad12861231c36b7d06ccb Mon Sep 17 00:00:00 2001 From: OhMyGuus Date: Tue, 5 Jan 2021 21:01:06 +0100 Subject: [PATCH] Prod --- android/app/src/main/assets/capacitor.config.json | 6 +----- capacitor.config.json | 6 +----- src/app/main/main.page.ts | 2 +- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/android/app/src/main/assets/capacitor.config.json b/android/app/src/main/assets/capacitor.config.json index a256214..4b5ace6 100644 --- a/android/app/src/main/assets/capacitor.config.json +++ b/android/app/src/main/assets/capacitor.config.json @@ -10,9 +10,5 @@ } }, "overrideUserAgent": "CrewLink/1.2.1 (win32)", - "cordova": {}, - "server": { - "url": "https://192.168.1.236:8100", - "cleartext": true - } + "cordova": {} } diff --git a/capacitor.config.json b/capacitor.config.json index a256214..4b5ace6 100644 --- a/capacitor.config.json +++ b/capacitor.config.json @@ -10,9 +10,5 @@ } }, "overrideUserAgent": "CrewLink/1.2.1 (win32)", - "cordova": {}, - "server": { - "url": "https://192.168.1.236:8100", - "cleartext": true - } + "cordova": {} } diff --git a/src/app/main/main.page.ts b/src/app/main/main.page.ts index ae42623..d42a558 100644 --- a/src/app/main/main.page.ts +++ b/src/app/main/main.page.ts @@ -57,7 +57,7 @@ export class MainPage implements OnInit { } async requestPermissions(): Promise { - if (this.platform.is('cordova')) { + if (this.platform.is('cordova') || this.platform.is('android') || this.platform.is('mobile')) { const PERMISSIONS_NEEDED = [ 'android.permission.FOREGROUND_SERVICE', this.androidPermissions.PERMISSION.BLUETOOTH,