AgoraIO-Community / VideoUIKit-ReactNative

A React Native package to simply integrate Agora Video Calling or Live Video Streaming to your app with just a few lines of code.
MIT License
93 stars 43 forks source link

unable to start rtm CHANNEL_MESSAGE_ERR_USER_NOT_LOGGED_IN #142

Closed srinath116 closed 11 months ago

srinath116 commented 1 year ago

Target device: (Note: simulators are not supported for running the UIKit)

App Info

Describe the issue i have tried enabling rtm to get the active member count in the room im passing all the necessary props required

{ "appId": "XXXX", "channel": "XX", "layout": 2, "rtcToken": , "rtcUid": "rtmToken": "rtmUid": }

To Reproduce Steps to reproduce the behavior: im using the same snippet defined in the readme

Screenshots If applicable, add screenshots to help explain your problem.

image

on Deubgging from node modules LOGIN_ERR_INVALID_ARGUMENT this was error in login

EkaanshArora commented 1 year ago

are you using the right channel token for RTM?

srinath116 commented 1 year ago

yes im generating it using the generators provided in the agora documentation token generator but the rtc token and rtm token are same when generated is this expected?

EkaanshArora commented 1 year ago

They should both be different, try this sample?

srinath116 commented 1 year ago

@EkaanshArora thanks for the reply can you point me to the python implementation ?

EkaanshArora commented 1 year ago

sure, here: https://github.com/AgoraIO/Tools/blob/master/DynamicKey/AgoraDynamicKey/python3/sample/RtmTokenBuilder2Sample.py

srinath116 commented 1 year ago

@EkaanshArora the issue still persists after moving to v2 attaching the props lemme know if im sending something wrong

{"appId": "XXXX", "channel": "XXXX", "disableRtm": false, "layout": 2, "rtcToken": "006af4d792267ae4388a7a11165c0b58778IAD1bU5a8tOTjWWtRrH8Myf2eLoZ4toBA5F6tR/Do+dQOyhc33GbjtJtIgA9g7oF9pLIZAQAAQD2kshkAgD2kshkAwD2kshkBAD2kshk", "rtcUid": 3, "rtmToken": "006af4d792267ae4388a7a11165c0b58778IAA9xGipPJI4Umph4EUucLMzRvax/KtVJ8On7aNWEf+Ydfg12E0AAAAAEABeIjgC9pLIZAEA6AP2kshk", "rtmUid": 3, "token": "006af4d792267ae4388a7a11165c0b58778IAD1bU5a8tOTjWWtRrH8Myf2eLoZ4toBA5F6tR/Do+dQOyhc33GbjtJtIgA9g7oF9pLIZAQAAQD2kshkAgD2kshkAwD2kshkBAD2kshk", "uid": 3}

bipin-sakariya commented 8 months ago

Video automatic mute when i calling from ios device. Would you please help me.