feat(android,interface): Handle battery optimisation

This commit is contained in:
2023-08-05 00:04:49 +02:00
parent 497ac279cc
commit 0d4f0c59cc
11 changed files with 165 additions and 5 deletions

View File

@@ -10,4 +10,14 @@ class AndroidPlatformImplementation extends PlatformImplementation {
Future<String> getPersistentDataPath() {
return MoxplatformInterface.api.getPersistentDataPath();
}
@override
Future<bool> isIgnoringBatteryOptimizations() {
return MoxplatformInterface.api.isIgnoringBatteryOptimizations();
}
@override
Future<void> openBatteryOptimisationSettings() {
return MoxplatformInterface.api.openBatteryOptimisationSettings();
}
}