add[收到消息时(包括弹窗和消息)需出现提示音+手机震动]
This commit is contained in:
parent
d7ea130f86
commit
7b6eb7bbed
@ -479,7 +479,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
|||||||
}
|
}
|
||||||
isInstructor();
|
isInstructor();
|
||||||
|
|
||||||
RongConfigCenter.notificationConfig().setInterceptor(new NotificationConfig.Interceptor() {
|
/*RongConfigCenter.notificationConfig().setInterceptor(new NotificationConfig.Interceptor() {
|
||||||
@Override
|
@Override
|
||||||
public boolean isNotificationIntercepted(Message message) {
|
public boolean isNotificationIntercepted(Message message) {
|
||||||
return true;
|
return true;
|
||||||
@ -499,7 +499,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
|||||||
public NotificationChannel onRegisterChannel(NotificationChannel notificationChannel) {
|
public NotificationChannel onRegisterChannel(NotificationChannel notificationChannel) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
});
|
});*/
|
||||||
RxView.clicks(findViewById(R.id.banner_click)).throttleFirst(2, TimeUnit.SECONDS).subscribe(new Observer<Unit>() {
|
RxView.clicks(findViewById(R.id.banner_click)).throttleFirst(2, TimeUnit.SECONDS).subscribe(new Observer<Unit>() {
|
||||||
@Override
|
@Override
|
||||||
public void onSubscribe(Disposable d) {
|
public void onSubscribe(Disposable d) {
|
||||||
|
@ -75,7 +75,10 @@
|
|||||||
<bool name="rc_enable_send_combine_message">false</bool>
|
<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>
|
<bool name="rc_enable_unread_mention">true</bool>
|
||||||
|
Loading…
Reference in New Issue
Block a user