Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tab837334754 opened this issue Jul 20, 2021 · 0 comments

Comments

@tab837334754
Copy link

tab837334754 commented Jul 20, 2021

"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"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant