AgoraIO-Usecase / Video-Calling

Calling Interface + Connection Service on top of Agora RTM + RTC for Video Calling Example
MIT License
61 stars 43 forks source link

How can I solve QUERY_PEERS_ONLINE_STATUS_ERR_USER_NOT_LOGGED_IN error? #44

Open chanjungkim opened 2 years ago

chanjungkim commented 2 years ago

OS: Android

I got this error startCall() method in DialerLayout.

https://docs.agora.io/en/Real-time-Messaging/API%20Reference/RTM_java/interfaceio_1_1agora_1_1rtm_1_1_rtm_status_code_1_1_query_peers_online_status_error.html#a56868ec982081b60b36c8851b3497171

It says, login() was not successful. So, I checked.

And I got rtm client login failed:LOGIN_ERR_INVALID_TOKEN

Screen Shot 2022-03-21 at 11 53 20 AM

I used this as accessToken:

006ec4d3c79f34547039646be4480f49dfbIABlebYvqM3gnOYGMOyfx/WfJA11GfTbzDjw8MdixkA25Qx+f9gAAAAAEADnfDPKYik5YgEAAQBiKTli

And

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <!-- PLEASE KEEP THIS App ID IN SAFE PLACE -->
    <!-- Get your own App ID at https://dashboard.agora.io/ -->
    <!-- After you entered the App ID, remove <##> outside of Your App ID -->
    <!-- <string name="private_app_id" translatable="false"><#YOUR APP ID#></string>-->
    <string name="private_app_id" translatable="false">ec4d3c79f34547039646be4480f49dfb</string>
    <!-- Obtain a temp Access Token at https://dashboard.agora.io -->
    <!-- You will need to deploy your own token server for production release -->
    <!-- Leave this value empty if Security keys/Token is not enabled for your project -->
    <string name="agora_access_token" translatable="false">006ec4d3c79f34547039646be4480f49dfbIABlebYvqM3gnOYGMOyfx/WfJA11GfTbzDjw8MdixkA25Qx+f9gAAAAAEADnfDPKYik5YgEAAQBiKTli</string>
    <!-- Obtain a temp RTM Access Token at https://dashboard.agora.io -->
    <!-- You will need to deploy your own token server for production release -->
    <!-- Leave this value empty if Security keys/Token is not enabled for your project -->
    <string name="rtm_access_token" translatable="false">006ec4d3c79f34547039646be4480f49dfbIABlebYvqM3gnOYGMOyfx/WfJA11GfTbzDjw8MdixkA25Qx+f9gAAAAAEADnfDPKYik5YgEAAQBiKTli</string>
</resources>

And I tried with:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="private_app_id" translatable="false">ec4d3c79f34547039646be4480f49dfb</string>
    <string name="agora_access_token" translatable="false"></string>
    <string name="rtm_access_token" translatable="false"></string>
</resources>

Because it says

    <!-- Obtain a temp RTM Access Token at https://dashboard.agora.io -->
    <!-- You will need to deploy your own token server for production release -->
    <!-- Leave this value empty if Security keys/Token is not enabled for your project -->

But didn't work.

How can I solve this problem?

softsan commented 1 year ago

same issue here.. any workaround / solution yet?