how to get real time chat history using agora sdk - real-time

how can I get all pervious real chat history from agora server ,I develop code for messaging but when I close the app and reopen the app do not get any message from peer to peer messaging mechanism. Please suggest any idea about what can I do?

Related

how can cashed chat when pusher channel will disconnect or internet will turn off in flutter app?

actually i am working with the chat app with Laravel backend support. i received message using pusher channel. the problem is cashes chat for offline mode as like other chat apps.
is SQFlite solution or any other way to make is easier?

what are the limits of what a Flutter app can't do vs a native iOS/Android app

I'm new to Flutter having been burned attempting to use PWA/Chrome to create a mobile app with native behaviour. So I don't get fooled again. I'm trying to understand what, if any, are the restrictions of Flutter on mobile.
Specifically, my app needs the following features (I'll use the Android terms but the equivalent iOS features also apply):-
receive Firebase Cloud Messages
those messages to be silent (ie. they are consumed by the app rather than go straght to a notification)
background http access (an Android Service)
local storage (more SQL-Lite than KV pairs)
Raise device notifications ...
... such notifications to have a deep link into the app, and ...
... have the ability to send a reply from the notification without opening the app
intercept incoming SMS (Android Telephony.Sms.Intents )
desktop widget
read the user's Gallery
access Location
intelligently guide the user to enable any necessary app permissions, such as Location, read Gallery, notifications, lock screen, etc
Is this kind of native behaviour within Flutter's realm?
Flutter, over the past years has grown mature enough to be doing all the above functionalities.
Here is the list of packages that you can use to make the app.
receive Firebase Cloud Messages ==> firebase_messaging 12.0.2
those messages to be silent ==> notifications 2.0.1
background http access ==> background_fetch
local storage ==> shared_preferences
Raise device notifications ==> in_app_notifications
deep link into the app ==> Can use branch.io
have the ability to send a reply from the notification ==> using platform channels
intercept incoming SMS ==> Telephony
desktop widget ==> currently not possible using flutter, MacOS yes, in some ways.
read the user's Gallery ==> Photo_Gallery
access Location ==> Location(Fine Access)
intelligently guide ==> Coach_Mark

Launch flutter app which is in terminated or background state when FCM data message arrives (in android OS only)

I am trying to build a video call app using Twilio in a flutter. I am able to receive FCM (Firebase cloud messaging) data messages. I just want to launch my app from within the onBackgroundMessage. Can anyone point me in the right direction?

How to retrieve chat history from ejabberd using Strophe and Intel XDK?

I am trying to understand how should I retrieve chat history from ejabberd between 2 users? I am using Strophe client and Intel XDK.
I am successfully sending the message, and the other user successfully receives the message. Also I have activated the mod_mam module, so I can see in my DB the entire conversation. My problem is, because I am developing a mobile app, and every time I exit the app, my conversation dissapears, what should I do to keep that conversation in my app even when I exit the app?

Facebook chat in iPhone app with push notifications

We're planning an app which, among other things, is supposed to integrate a facebook chat.
We're discussing about the push notifications for receiving messages while the app's in background. What comes to mind is a proxy server for the chat, that'd actually connect to the facebook chat, and the iPhone app would connect to the proxy.
Then, it's easy to have the proxy server act as a push notification server.
Is this the only way to go, or are we making this more complex than it needs to be?
Any input is appreciated. Thanks.
To do push notification (App is closed, user receive a message and an alert appear on the iPhone), that's the only way, because every app need an unique certificate to send push notifications. This mean that official Facebook servers can't push for third-party applications. You need a proxy that keep a connection open to FB and push alerts to Apple's Push Notification Server when needed.
Inside the app, instead, you can connect directly by opening a socket to Facebook's servers and use a Jabber library for ObjC. This allows another approach: Local Notifications. They're similar to Push, but they doesn't need a proxy server: it's the application running on user's device that keep an open connection (even when the app is in background) with Chat Server.
This is the documentation that covers both type of notification: Local and Push Notification Programming Guide
Facebook's chat system is a Jabber server, so I think you are making it more complex than you need to.