aurora-imui icon indicating copy to clipboard operation
aurora-imui copied to clipboard

使用appendMessages应用崩溃,点击相册/拍照/语音按钮没反应

Open tab837334754 opened this issue 3 years ago • 0 comments

"react-native": "0.59.9" "react": "16.8.0" "aurora-imui-react-native": "^0.14.0" "jmessage-react-plugin": "^3.2.0"

登录成功(JMessage.login)=>创建会话成功(JMessage.createConversation)

问题1:使用appendMessages应用崩溃

代码片段:

import JMessage from 'jmessage-react-plugin';
import IMUI from 'aurora-imui-react-native';
const AuroraIController = IMUI.AuroraIMUIController;
var messages2 = [{
      msgId: "1",
      status: "send_going",
      msgType: "text",
      text: text,
      isOutgoing: true,
      fromUser: {
        userId: "1",
        displayName: "Ken",
        avatarPath: "ironman"
      },
      timeString: "10:00"
    }];
    AuroraIController.appendMessages(messages2)

报错信息(AS中logcat获得):

1431626767116_ pic_hd

问题2:点击相册/拍照/语音按钮没反应

打开APP第一次点,有提示获取权限,点了确认权限后,再点击就没有反应了。会触发回调函数。 AndroidMainifest.xml存在以下权限配置

<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera"/>

tab837334754 avatar Jul 20 '21 09:07 tab837334754