Android 无法关闭 消息提示音和振动。 HX版本 V2.2.0
initHXOptions(){
EMChatOptions options = EMChatManager.getInstance().getChatOptions(); ...
options.setNotificationEnable(false);
options.setNoticedByVibrate(false);
options.setNoticeBySound(false);
options.setNotifyBySoundAndVibrate(false);
...
EMChatManager.getInstance().setChatOptions(options);
}
这样设置 还不够吗?
已排除 android notification 自身的提示音和振动 (已注释 notification build 代码)
测试机 小米3联通版 android 4.4.4
没有找到相关结果
已邀请:
2 个回复
Wxin
chuaxiansky - 90后IT男
因为 Demo里 发消息的 振动和提醒, 是 hxSDKMODEL 来控制的。
onNewMsg 和 viberateAndPlayTone 的实现逻辑 在这里面。 跟Options 没关系了