feat: add permission screen shown before main screen

This commit is contained in:
fiatcode 2026-04-30 16:11:45 +07:00
parent a7a6a6a82d
commit 650a6efeca
No known key found for this signature in database
6 changed files with 562 additions and 1 deletions

View file

@ -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;
}
}
}