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

acceptRemoteInvitationV2、refuseRemoteInvitationV2 在1.5.0 报错 #58

Open
hiscc opened this issue Mar 29, 2022 · 4 comments
Open

acceptRemoteInvitationV2、refuseRemoteInvitationV2 在1.5.0 报错 #58

hiscc opened this issue Mar 29, 2022 · 4 comments

Comments

@hiscc
Copy link

hiscc commented Mar 29, 2022

"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
Copy link
Contributor

export enum RemoteInvitationState {
IDLE = 0,
INVITATION_RECEIVED = 1,
ACCEPT_SENT_TO_LOCAL = 2,
REFUSED = 3,
ACCEPTED = 4,
CANCELED = 5,
FAILURE = 6,
}

通过枚举来看,state应该是正确的?

@hiscc
Copy link
Author

hiscc commented May 9, 2022

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
Copy link
Contributor

请问用demo可以复现么,或者提供一个修改后的代码,方便我们用demo复现

@hiscc
Copy link
Author

hiscc commented May 19, 2022

请问用demo可以复现么,或者提供一个修改后的代码,方便我们用demo复现

你们的demo里没有使用这两个方法,只监听了来电,对于后续的操作「接收、拒绝、取消」没有处理

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

2 participants