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 @@ -25,7 +25,10 @@ AndroidNotificationHostApi get _androidHost => ZulipBinding.instance.androidNoti
25
25
/// Service for configuring our Android "notification channel".
26
26
class NotificationChannelManager {
27
27
@visibleForTesting
28
- static const kChannelId = 'messages-1' ;
28
+ static const kChannelId = 'messages-2' ;
29
+
30
+ @visibleForTesting
31
+ static const kDefaultSoundResourceName = 'chime3' ; // 'Zulip - Chime.m4a'
29
32
30
33
/// The vibration pattern we set for notifications.
31
34
// We try to set a vibration pattern that, with the phone in one's pocket,
@@ -77,8 +80,8 @@ class NotificationChannelManager {
77
80
name: 'Messages' , // TODO(i18n)
78
81
importance: NotificationImportance .high,
79
82
lightsEnabled: true ,
83
+ soundResourceName: kDefaultSoundResourceName,
80
84
vibrationPattern: kVibrationPattern,
81
- // TODO(#340) sound
82
85
));
83
86
}
84
87
}
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ void main() {
126
126
..name.equals ('Messages' )
127
127
..importance.equals (NotificationImportance .high)
128
128
..lightsEnabled.equals (true )
129
- ..soundResourceName.isNull ( )
129
+ ..soundResourceName.equals ( NotificationChannelManager .kDefaultSoundResourceName )
130
130
..vibrationPattern.isNotNull ().deepEquals (
131
131
NotificationChannelManager .kVibrationPattern)
132
132
;
You can’t perform that action at this time.
0 commit comments