This commit is contained in:
Hamza Aleghwairyeen
2024-01-23 11:39:43 +03:00
parent 6cc33b97e9
commit 158d5dfb35
4 changed files with 11 additions and 7 deletions

View File

@@ -273,9 +273,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 +310,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 +350,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,