feat: add permission screen shown before main screen
This commit is contained in:
parent
a7a6a6a82d
commit
650a6efeca
6 changed files with 562 additions and 1 deletions
|
|
@ -92,4 +92,16 @@ class LocationBridge {
|
|||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
static Future<bool> openBatteryOptimizationSettings() async {
|
||||
try {
|
||||
final result = await _methodChannel.invokeMethod<bool>(
|
||||
'openBatteryOptimizationSettings',
|
||||
);
|
||||
return result ?? false;
|
||||
} on PlatformException catch (e) {
|
||||
debugPrint('Failed to open battery settings: ${e.message}');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue