Update: 2026-07-29 19:44:57
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user