-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HistoricalMessaging not working in agora-react-native-rtm": "^1.2.2-alpha.3" Version #35
Comments
could you pls provide a full cURL copy of your request? |
Maybe you should be add listener after engine created? |
https://api.agora.io/dev/v2/project/7fbb032d23784374b7f38163102019ab/rtm/message/history/query x-agora-token:- 0067fbb032d23784374b7f38163102019abIACP6+OdB7i4TwZq3HjQHJgNoycsH5Acbd1nRc7LIlCMQnmz7I4AAAAAEACNyCbp4fRvYAEA6AMAAAAA uid:- [email protected] |
Yes, we have moved our code as per your suggestion and try the same steps but history messages aren't displaying. Please provide the example link or something of react-native in which Historical Message display. static agoraInit = async(strEmail, strChatToken) => {
|
@kuldipp1995 If you got any solution about get messgae history then kindly share with me |
I have added below code but now works for me, I when I'm try to get recent chat list then not getting any messages
Message History EndPoint:-
"https://api.agora.io/dev/v2/project/{{appId}}/rtm/message/history/query"
import RtmEngine from 'agora-react-native-rtm';
const APP_ID = ''
let engine;
import { EventRegister } from 'react-native-event-listeners'
class AgoraManager {
}
export { AgoraManager };
Chat.js
let dictMessage = { 'peerId': this.state.strReceiveUId, 'offline': true, 'text': this.state.strUserMessage.trim(),
const {response} = await AgoraManager.sendMessage(dictMessage)
AgoraRTM.m
// sendMessageToPeer
RCT_EXPORT_METHOD(sendMessageToPeer:
(NSDictionary *) params
resolve:
(RCTPromiseResolveBlock) resolve
reject:
(RCTPromiseRejectBlock) reject) {
BOOL offline = [params[@"offline"] boolValue];
NSString *text = params[@"text"];
NSString *peerId = params[@"peerId"];
}
Please suggest me any solution for this.
Thank you
The text was updated successfully, but these errors were encountered: