Update: 2026-06-14 05:48:58
This commit is contained in:
@@ -19,6 +19,7 @@ import 'package:siro_rider/controller/voice_call_controller.dart';
|
||||
import '../home/map/ride_lifecycle_controller.dart';
|
||||
import '../home/map/ride_state.dart';
|
||||
import 'local_notification.dart';
|
||||
import '../../views/widgets/mydialoug.dart';
|
||||
|
||||
class FirebaseMessagesController extends GetxController {
|
||||
final fcmToken = FirebaseMessaging.instance;
|
||||
@@ -171,14 +172,22 @@ class FirebaseMessagesController extends GetxController {
|
||||
if (Platform.isAndroid) {
|
||||
notificationController.showNotification(title, body, 'ding');
|
||||
}
|
||||
passengerDialog(body);
|
||||
MyDialog().getChatDialog(
|
||||
title.isNotEmpty ? title : 'message From passenger'.tr,
|
||||
body,
|
||||
() {},
|
||||
);
|
||||
update();
|
||||
} else if (category == 'message From Driver') {
|
||||
// <-- كان 'message From Driver'
|
||||
if (Platform.isAndroid) {
|
||||
notificationController.showNotification(title, body, 'ding');
|
||||
}
|
||||
passengerDialog(body);
|
||||
MyDialog().getChatDialog(
|
||||
title.isNotEmpty ? title : 'message From Driver'.tr,
|
||||
body,
|
||||
() {},
|
||||
);
|
||||
update();
|
||||
} else if (category == 'Trip is Begin') {
|
||||
// <-- كان 'Trip is Begin'
|
||||
|
||||
Reference in New Issue
Block a user