Update: 2026-07-10 22:31:26

This commit is contained in:
Hamza-Ayed
2026-07-10 22:31:27 +03:00
parent 607c9bd9f4
commit 6294d6e725
5 changed files with 38 additions and 8 deletions
+5 -2
View File
@@ -96,9 +96,12 @@ void main() {
// ✅ تهيئة خدمة Android Live Update (Progress Style)
await AndroidLiveUpdateService.init();
// Initialize Geofencing Service
// Initialize Geofencing Service only if permission is already granted to avoid auto-prompt
if (Platform.isAndroid || Platform.isIOS) {
await SiroGeofencingService.initAndStart();
LocationPermission permission = await Geolocator.checkPermission();
if (permission != LocationPermission.denied && permission != LocationPermission.deniedForever) {
await SiroGeofencingService.initAndStart();
}
}
// Lock screen orientation.