Lucas Yang
Lucas Yang

Reputation: 1

Connectycube cannot createSession on android when using react native

I am using react native 0.71 recently and connected to the connect cube's react native sdk. When I call await ConnectyCube. createSession (params) on iOS, everything is normal. But when I debug in Android Studio, createSession will return failure. I don't know what happened. Can someone help me? Thank you very much. Here is my development environment:

env

I tried using Postman to directly call the API of connectycube, but still reported an error: Postman

url: https://api.connectycube.com/session.json

data:{"application_id": 5032, "auth_key": "6Be2zh-rqaWnFD8", "nonce": 4693, "signature": "4a903cc3e6394f6749ab419df76cae68ccb8657f", "timestamp": 1691170124, "user": {"login": "[email protected]", "password": "11111111"}}

Edited: I used the official RNChat demo of connectycube and reported the same error.

Upvotes: 0

Views: 104

Answers (1)

user22643853
user22643853

Reputation: 1

Should be something wrong with timestamp. Different between timestamp in request and server more then 60 seconds. Check your device date settings.

https://developers.connectycube.com/server/auth?id=create-session

Upvotes: 0

Related Questions