Update send FCM Token to Server

This commit is contained in:
anhtunz
2025-03-14 22:35:54 +07:00
parent a6fa3b1572
commit c21667606a
4 changed files with 23 additions and 4 deletions

View File

@@ -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");