Skip to content

Commit

Permalink
feat(background-mode): add disableBatteryOptimizations function (#3235)
Browse files Browse the repository at this point in the history
implemented disableBatteryOptimizations() method #3085
  • Loading branch information
akshaydwivedi29 authored and danielsogl committed Nov 19, 2019
1 parent 3440dca commit d2e4d3e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/@ionic-native/plugins/background-mode/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
}

0 comments on commit d2e4d3e

Please sign in to comment.