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:
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.
Should be something wrong with
timestamp. Different betweentimestampin request and server more then 60 seconds. Check your device date settings.https://developers.connectycube.com/server/auth?id=create-session