diff --git a/src/@ionic-native/plugins/background-mode/index.ts b/src/@ionic-native/plugins/background-mode/index.ts index c55aee9a2..86c50e221 100644 --- a/src/@ionic-native/plugins/background-mode/index.ts +++ b/src/@ionic-native/plugins/background-mode/index.ts @@ -267,4 +267,13 @@ export class BackgroundMode extends IonicNativePlugin { sync: true }) unlock(): void {} + + /** + * Disables battery optimazation mode for the app (android only) + */ + @Cordova({ + platforms: ['Android'], + sync: true + }) + disableBatteryOptimizations(): void {} }