ConnectyCube / connectycube-reactnative-samples

Chat and Video Chat code samples for React Native, ConnectyCube
https://connectycube.com
Apache License 2.0
124 stars 111 forks source link

Message not sending first time and not authorized user to cat and start chat session not authorized #299

Closed UdjinStolboviy closed 1 year ago

UdjinStolboviy commented 2 years ago

Hello. The following errors occurred. Please help with the solution. id 5750 Error description. We are creating a new User and trying to send a message. The first message is not sent to the ConnectyCube.chat.connect service and also does not work properly ConnectyCube.init

There are problems with ConnectyCube.pushnotifications

before that everything worked properly, this error appeared 5 -7 days ago.

the code base of our messenger was not changed. Please tell me what could be the problem?

DaveLomber commented 2 years ago

Hi @UdjinStolboviy

could you please provide more info what errors you face, e.g. some logs/errors exampels

UdjinStolboviy commented 2 years ago

Simulator Screen Shot - iPhone 8 - 2022-06-17 at 10 00 54 Simulator Screen Shot - iPhone 8 - 2022-06-17 at 15 17 48 Simulator Screen Shot - iPhone 8 - 2022-06-17 at 15 27 40 Simulator Screen Shot - iPhone 8 - 2022-06-17 at 15 33 00

DaveLomber commented 2 years ago

If talking about "occupants_ids field must contain an opponent user id" error it means when you create a private 1-1 chat https://developers.connectycube.com/js/messaging?id=create-1-1-chat you need to pass another user id in occupants_ids field e.g. occupants_ids: [56],

UdjinStolboviy commented 2 years ago

Simulator Screen Shot - iPhone 8 - 2022-06-27 at 09 05 12

UdjinStolboviy commented 2 years ago

const credentials = { userId: userChatId, password: this.PASSWORD }

  console.warn('_____________Connect user to chat: ', credentials);
  await ConnectyCube.chat.connect(credentials);
UdjinStolboviy commented 2 years ago

I pass on all valid data. Your server cannot find this data

UdjinStolboviy commented 2 years ago

{ type: DialogType.PRIVATE_CHAT, occupants_ids: opponentIds }

UdjinStolboviy commented 2 years ago

Simulator Screen Shot - iPhone 8 - 2022-06-27 at 09 26 05

DaveLomber commented 2 years ago

@UdjinStolboviy non-authorized means the password is wrong

do you use Custom Identity provider ? or just simple login+pwd flow ?

DaveLomber commented 1 year ago

Closed as stale Please create a new issue if it's still actual