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 fails on iOS #82

Open
ShelbyIB opened this issue Feb 6, 2023 · 0 comments
Open

acceptRemoteInvitationV2 fails on iOS #82

ShelbyIB opened this issue Feb 6, 2023 · 0 comments

Comments

@ShelbyIB
Copy link

ShelbyIB commented Feb 6, 2023

Hi. I am using "agora-react-native-rtm": "^1.5.1" and I get
Caller

LocalInvitationFailure:
{"calleeId": "ios", "channelId": "friends", "content": "my content", "hash": 55201274, "response": "", "state": 6}

Callee

RemoteInvitationFailure
{"content":"my content", "hash":10790526560,"callerId":"android","state":6,"channelId":"friends"}

with ios. There is already an issue #74 related to this but it has been closed with the answer,
change remote hash to 0.
But I wonder how to change the hash since hash value is read only in both remote and local invitations.

export interface LocalInvitation{
 readonly calleeId: string;
 content?: string;
 channelId?: string;
 readonly response?: string;
 readonly state?: LocalInvitationState;
 readonly hash: number;
}

export interface RemoteInvitation {
  readonly callerId: string;
  readonly content?: string;
  readonly channelId?: string;
  response?: string;
  readonly state?: RemoteInvitationState;
  readonly hash: number;
}

Also I tried changing the invitation hash to 0 as follows and it works but it seems not be an answer it's a workaround only.
let newInvitation = {...invitation, hash: 0};

Seems this needs to be fixed in future version.

Note that this happens with ios only. My device os version -iOS 16.2

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