AgoraIO / RTM

143 stars 160 forks source link

LOGIN_ERR_INVALID_TOKEN #168

Open ebenavidez opened 2 years ago

ebenavidez commented 2 years ago

I am trying to login into the app using anystring as user name but am getting a LOGIN_ERR_INVALID_TOKEN.

Looking into the code and the api reference, it says that the first parameter for the login funciton should be null during integration or testing, which is the case by default in the android code. Still I get LOGIN_ERR_INVALID_TOKEN.

I tried using https://webdemo.agora.io/token-builder/ to get a token. But I am not sure what certificate and uid to use. I tried using the primary certificate and a randon string for uid but it doesn't work.

I need guidance regarding this.. Thanks in advance.

yamasite commented 2 years ago

Please refer to the official docs: https://docs.agora.io/en/Real-time-Messaging/rtm_android_run?platform=Android