AgoraIO-Community / Agora-Unity-RTM-SDK

A Unity3D sample app to show Login /Logout, Log in to/out of channel, Get Channel Member Count, Send/Receive Channel Message, Send Peer Message, Query Member, and token Authentication
24 stars 15 forks source link

你好。 我对Unity-RTM-Demo有疑问。 #20

Closed dh7300 closed 3 years ago

dh7300 commented 3 years ago

收到演示后,导入SDK并输入AppID和令牌后,输入用户名并单击LOGIN。 “客户端登录失败!ID = 0错误代码= LOGIN_ERR_INVALID_APP_ID” “连接状态已更改ID:0状态:CONNECTION_STATE_DISCONNECTED原因:CONNECTION_CHANGE_REASON_LOGIN_FAILURE” 这些错误显示在debug.log中。 我需要帮助。

zhangtao1104 commented 3 years ago

你需要根据 Unity-RTM-Demo 的 README 的流程去做,报这个错误的原因应该是你没有 注册 appId,Demo 里需要正确的注册过的 appId 才可以正常运行。

dh7300 commented 3 years ago
ap

I did read the README. Put the APPID at the top of the image in the APPID I put the APP certificate at the bottom of the image in TOKEN. Still, when I press the login button after writing the username, it says that it failed. Am I wrong?

zhangtao1104 commented 3 years ago

You can use Testing mode with no certificate and then you just need to copy the appId.

At last you just need to paste the appId into the property which is located at "MainScene/ChatManager/AppId".

Then you can run the demo.

ROBYER1 commented 3 years ago

If you did what I did, which was assume the RTM SDK was a part of the Unity Agora SDK from the Asset store, you are wrong as I was. Import this release package into your project and RTM examples from this repo will work as long as you use a valid AppId

https://github.com/AgoraIO-Community/Agora-Unity-RTM-SDK/releases/tag/v1.4.2.301.2