Update: 2026-07-10 22:31:26
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user