Update: 2026-07-29 19:44:57
This commit is contained in:
@@ -26,6 +26,7 @@ import 'controller/local/translations.dart';
|
||||
import 'controller/firebase/local_notification.dart';
|
||||
import 'controller/themes/themes.dart';
|
||||
import 'firebase_options.dart';
|
||||
import 'controller/functions/ssl_pinning.dart';
|
||||
import 'models/db_sql.dart';
|
||||
import 'print.dart';
|
||||
import 'splash_screen_page.dart';
|
||||
@@ -68,7 +69,7 @@ Future<void> backgroundMessageHandler(RemoteMessage message) async {
|
||||
});
|
||||
|
||||
// Update geofences on device silently
|
||||
await SiroGeofencingService.syncZonesWithServer(
|
||||
await IntaleqGeofencingService.syncZonesWithServer(
|
||||
position.latitude, position.longitude);
|
||||
} catch (e) {
|
||||
Log.print("Silent push location update failed: $e");
|
||||
@@ -124,6 +125,7 @@ void main() {
|
||||
// --- Step 1: Critical initializations before runApp() ---
|
||||
// These must complete before the UI can be built.
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
HttpOverrides.global = IntaleqHttpOverrides();
|
||||
await GetStorage.init();
|
||||
// Purge any previously stored CVV (PCI-DSS compliance)
|
||||
await storage.delete(key: BoxName.cvvCode);
|
||||
@@ -144,7 +146,7 @@ void main() {
|
||||
LocationPermission permission = await Geolocator.checkPermission();
|
||||
if (permission != LocationPermission.denied &&
|
||||
permission != LocationPermission.deniedForever) {
|
||||
await SiroGeofencingService.initAndStart();
|
||||
await IntaleqGeofencingService.initAndStart();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user