Update: 2026-07-29 19:44:57

This commit is contained in:
Hamza-Ayed
2026-07-29 19:44:58 +03:00
parent 2cf5c63a1e
commit 90d976e1d1
110 changed files with 2238 additions and 2071 deletions
+12 -2
View File
@@ -25,6 +25,7 @@ import 'controller/firebase/firbase_messge.dart';
import 'controller/firebase/local_notification.dart';
import 'controller/functions/background_service.dart';
import 'controller/functions/crud.dart';
import 'controller/functions/ssl_pinning.dart';
import 'controller/home/captin/home_captain_controller.dart';
import 'controller/local/local_controller.dart';
import 'controller/local/translations.dart';
@@ -162,7 +163,11 @@ Future<void> _processRejectOrderBackground(List<dynamic> data) async {
@pragma('vm:entry-point')
Future<void> backgroundMessageHandler(RemoteMessage message) async {
WidgetsFlutterBinding.ensureInitialized();
await GetStorage.init();
try {
await GetStorage.init();
} catch (e) {
print("GetStorage init background warning: $e");
}
await TripOverlayPlugin.initialize();
@@ -264,9 +269,14 @@ void notificationTapBackground(NotificationResponse notificationResponse) {
void main() {
runZonedGuarded(() async {
WidgetsFlutterBinding.ensureInitialized();
HttpOverrides.global = IntaleqHttpOverrides();
await initFirebaseIfNeeded();
await WakelockPlus.enable();
await GetStorage.init();
try {
await GetStorage.init();
} catch (e) {
print("GetStorage init warning: $e");
}
// Purge any previously stored CVV (PCI-DSS compliance)
await storage.delete(key: BoxName.cvvCode);
await storage.delete(key: BoxName.cvvCodeDriver);