acceptRemoteInvitationV2、refuseRemoteInvitationV2 在1.5.0 报错
hiscc opened this issue · 4 comments
hiscc commented
"agora-react-native-rtm": "^1.5.0",
"react": "17.0.2",
"react-native": "0.66.4",
RemoteInvitationAccepted--- {"callerId": "2", "channelId": "", "content": "", "hash": 105553150592080, "state": 4}
RemoteInvitationRefused--- {"callerId": "2", "channelId": "", "content": "", "hash": 105553150623984, "state": 3}
sendLocalInvitationV2、cancelLocalInvitationV2 正常
而且监听回来的 state 正好反了,切换到旧版 acceptRemoteInvitation、refuseRemoteInvitation 可以收到信息。不知道是SDK问题还是配置不对
LichKing-2234 commented
export enum RemoteInvitationState {
IDLE = 0,
INVITATION_RECEIVED = 1,
ACCEPT_SENT_TO_LOCAL = 2,
REFUSED = 3,
ACCEPTED = 4,
CANCELED = 5,
FAILURE = 6,
}
通过枚举来看,state应该是正确的?
hiscc commented
export enum RemoteInvitationState { IDLE = 0, INVITATION_RECEIVED = 1, ACCEPT_SENT_TO_LOCAL = 2, REFUSED = 3, ACCEPTED = 4, CANCELED = 5, FAILURE = 6, }
通过枚举来看,state应该是正确的?
上面是通过 acceptRemoteInvitation、refuseRemoteInvitation 返回来的消息 @LichKing-2234 ,V2 版本的直接在原生报错了
LichKing-2234 commented
请问用demo可以复现么,或者提供一个修改后的代码,方便我们用demo复现
hiscc commented
请问用demo可以复现么,或者提供一个修改后的代码,方便我们用demo复现
你们的demo里没有使用这两个方法,只监听了来电,对于后续的操作「接收、拒绝、取消」没有处理