Skip to content

Commit

Permalink
fix: tsunami-notify
Browse files Browse the repository at this point in the history
  • Loading branch information
charlie112787 committed Sep 17, 2024
1 parent fff376a commit 06c6b22
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/core/notify.dart
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,17 @@ Future<void> notifyInit() async {
channelKey: "tsunami-important",
channelName: "海嘯資訊(重大)",
channelDescription: "海嘯警報發布時,沿海地區鄉鎮",
importance: NotificationImportance.High,
importance: NotificationImportance.Max,
defaultPrivacy: NotificationPrivacy.Public,
criticalAlerts: true,
playSound: true,
soundSource: 'resource://raw/tsunami',
defaultRingtoneType: DefaultRingtoneType.Alarm,
defaultColor: Colors.red,
ledColor: Colors.red,
enableVibration: true,
vibrationPattern: mediumVibrationPattern),
vibrationPattern: highVibrationPattern,
locked: true),
NotificationChannel(
channelGroupKey: 'group_tsunami',
channelKey: "tsunami-general",
Expand All @@ -248,7 +251,7 @@ Future<void> notifyInit() async {
importance: NotificationImportance.Default,
defaultPrivacy: NotificationPrivacy.Public,
playSound: true,
soundSource: 'resource://raw/warn',
soundSource: 'resource://raw/normal',
defaultColor: Colors.red,
ledColor: Colors.red,
enableVibration: true,
Expand Down

0 comments on commit 06c6b22

Please sign in to comment.