This commit is contained in:
Hamza-Ayed
2024-01-24 01:58:52 +03:00
parent 8aaca3630d
commit 1eab187076
13 changed files with 299 additions and 189 deletions

View File

@@ -213,9 +213,7 @@ class FirebaseMessagesController extends GetxController {
'notification': <String, dynamic>{
'title': title,
'body': body,
'sound': Platform.isAndroid
? 'android/app/src/main/res/raw/tone1.mp3'
: 'tone2.wav'
'sound': 'tone2.wav'
},
'priority': 'high',
'data': <String, dynamic>{
@@ -273,9 +271,7 @@ class FirebaseMessagesController extends GetxController {
'notification': <String, dynamic>{
'title': title,
'body': body,
'sound': Platform.isAndroid
? 'android/app/src/main/res/raw/tone1.mp3'
: 'tone2.wav'
'sound': 'tone2.wav'
},
'data': {
'passengerList': map,
@@ -312,7 +308,7 @@ class FirebaseMessagesController extends GetxController {
'notification': <String, dynamic>{
'title': title,
'body': body,
'sound': Platform.isAndroid ? 'tone2' : 'tone2.wav'
'sound': 'tone2.wav'
},
'data': <String, dynamic>{
'click_action': 'FLUTTER_NOTIFICATION_CLICK',
@@ -352,9 +348,7 @@ class FirebaseMessagesController extends GetxController {
'title': title,
'body': body,
// 'sound': 'tone2.wav',
'sound': Platform.isAndroid
? 'android/app/src/main/res/raw/tone1.mp3'
: 'tone2.wav'
'sound': 'order.wav'
},
'data': {
'DriverList': data,