Update send FCM Token to Server
This commit is contained in:
@@ -75,7 +75,7 @@ class NotificationServices {
|
||||
importance: androidNotificationChannel.importance,
|
||||
priority: Priority.high,
|
||||
ticker: 'ticker',
|
||||
actions: type == "warn1"
|
||||
actions: type == "smoke_warning"
|
||||
? [
|
||||
const AndroidNotificationAction(
|
||||
"id1",
|
||||
@@ -117,9 +117,9 @@ class NotificationServices {
|
||||
return const RawResourceAndroidNotificationSound("welcome");
|
||||
} else if (type == "success") {
|
||||
return const RawResourceAndroidNotificationSound("success_alert");
|
||||
} else if (type == "warn1") {
|
||||
} else if (type == "smoke_warning") {
|
||||
return const RawResourceAndroidNotificationSound("warning_alarm");
|
||||
} else if (type == "warn2") {
|
||||
} else if (type == "battery_warning") {
|
||||
return const RawResourceAndroidNotificationSound("new_alarm");
|
||||
} else {
|
||||
return const RawResourceAndroidNotificationSound("normal");
|
||||
|
||||
Reference in New Issue
Block a user