From e6a647b08b4a8f9a7a409d33d54a4b8395611f9c Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Tue, 9 May 2017 23:31:01 +0200 Subject: [PATCH] fix(background-mode): add missing method (#1486) fix #1393 --- src/@ionic-native/plugins/background-mode/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/@ionic-native/plugins/background-mode/index.ts b/src/@ionic-native/plugins/background-mode/index.ts index a3bcda477..9455d13c6 100644 --- a/src/@ionic-native/plugins/background-mode/index.ts +++ b/src/@ionic-native/plugins/background-mode/index.ts @@ -150,6 +150,15 @@ export class BackgroundMode extends IonicNativePlugin { }) moveToBackground(): void { } + /** + * Enable GPS-tracking in background (Android). + */ + @Cordova({ + platforms: ['Android'], + sync: true + }) + disableWebViewOptimizations (): void { } + /** * Android allows to programmatically move from background to foreground. */