add[收到消息时(包括弹窗和消息)需出现提示音+手机震动]

This commit is contained in:
zlzw 2024-06-12 14:41:01 +08:00
parent d7ea130f86
commit 7b6eb7bbed
2 changed files with 6 additions and 3 deletions

View File

@ -479,7 +479,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
}
isInstructor();
RongConfigCenter.notificationConfig().setInterceptor(new NotificationConfig.Interceptor() {
/*RongConfigCenter.notificationConfig().setInterceptor(new NotificationConfig.Interceptor() {
@Override
public boolean isNotificationIntercepted(Message message) {
return true;
@ -499,7 +499,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
public NotificationChannel onRegisterChannel(NotificationChannel notificationChannel) {
return null;
}
});
});*/
RxView.clicks(findViewById(R.id.banner_click)).throttleFirst(2, TimeUnit.SECONDS).subscribe(new Observer<Unit>() {
@Override
public void onSubscribe(Disposable d) {

View File

@ -75,7 +75,10 @@
<bool name="rc_enable_send_combine_message">false</bool>
<!--在前台非会话页面时,接收到新消息是否响铃 -->
<bool name="rc_sound_in_foreground">false</bool>
<bool name="rc_sound_in_foreground">true</bool>
<!--在前台非会话页面时,接收到新消息是否震动-->
<bool name="rc_vibrate_in_foreground">true</bool>
<!--会话页面右上角的未读 @ 消息数提示,当收到的消息中有 @ 消息时,进入会话之后,是否在右上角提示未读 @ 消息数-->
<bool name="rc_enable_unread_mention">true</bool>