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,