File tree 4 files changed +7
-4
lines changed
android/app/src/main/res/raw
4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 12
12
https://github.com/zulip/zulip-flutter/issues/528
13
13
-->
14
14
<resources xmlns : tools =" http://schemas.android.com/tools"
15
- tools : keep =" @drawable/zulip_notification"
15
+ tools : keep =" @drawable/zulip_notification,@raw/chime3 "
16
16
/>
Original file line number Diff line number Diff line change @@ -26,7 +26,10 @@ AndroidNotificationHostApi get _androidHost => ZulipBinding.instance.androidNoti
26
26
/// Service for configuring our Android "notification channel".
27
27
class NotificationChannelManager {
28
28
@visibleForTesting
29
- static const kChannelId = 'messages-1' ;
29
+ static const kChannelId = 'messages-2' ;
30
+
31
+ @visibleForTesting
32
+ static const kDefaultSoundResourceName = 'chime3' ; // 'Zulip - Chime.m4a'
30
33
31
34
/// The vibration pattern we set for notifications.
32
35
// We try to set a vibration pattern that, with the phone in one's pocket,
@@ -78,8 +81,8 @@ class NotificationChannelManager {
78
81
name: 'Messages' , // TODO(i18n)
79
82
importance: NotificationImportance .high,
80
83
lightsEnabled: true ,
84
+ soundResourceName: kDefaultSoundResourceName,
81
85
vibrationPattern: kVibrationPattern,
82
- // TODO(#340) sound
83
86
));
84
87
}
85
88
}
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ void main() {
127
127
..name.equals ('Messages' )
128
128
..importance.equals (NotificationImportance .high)
129
129
..lightsEnabled.equals (true )
130
- ..soundResourceName.isNull ( )
130
+ ..soundResourceName.equals ( NotificationChannelManager .kDefaultSoundResourceName )
131
131
..vibrationPattern.isNotNull ().deepEquals (
132
132
NotificationChannelManager .kVibrationPattern)
133
133
;
You can’t perform that action at this time.
0 commit comments