I am working on a chat app and on Reply Algorithm. Let I explain:
when someone want to reply to a specific message touches that message and on popup menu touches "Reply" then writes a message and click send. message that shows in channel is a premier message and it's reply(LIKE TELEGRAM APP). I don't want to send premier message again because of performance and My traffic limit in PUBNUB and premier message is there in client Apps. My algorithm is send premier message ID and reply then use that ID to find premier message. but App must involve a Query to find that message. I think start finding from last to first(because usually relies given to last messages) is good. questions is:
1 - all of this, is good way?
2 - there is better Query Algorithm?
this question is not for specific programming language but I am working on Android(JAVA).
Related
Short description: I get push notification from twilio chat. But in my app I use 4 different chats (channels). So when I get field "bage" from notification it just show count of chats with new messages, but not amount of messages.
How can I get the sum of unread messages from all chats?
More info:
I use react-native 0.61.2 but I write native code too;
During the work I have used this tutorial TwilioChatReactNative;
For indicate unreaded messages I use Message Consumption Horizon;
The way of connection to chat (only react part) the close to this Connect to chat;
In theory I can get set bage himself, but for me this function don't work in background;
PushNotificationIOS.setApplicationIconBadgeNumber
Also I have tried to use this library react-native-notification but it didn't help too.
I subscribe to pushNotification with this method
client.setPushRegistrationId('apn', token);
When I use twilio notify and set "bage" by hand all work good, but notification from chat twilio do by himself.
Summary: I need one decision from this list (or something else, I open for offers):
Say twilio send me sum of unread messages from all chats;
Way how update "bage" from background;
New way of subscribing to channels to get the sum of messages in "bage".
Thanks to everyone who will respond
Thank you for your questions and for using Twilio Programmable Chat! I have opened this issue in the repo found at https://github.com/twilio/TwilioChatJsReactNative/issues/40 so that folks using the repo can see the answers there. :-)
Hey guys i am an android developer and have followed the tutorials on instant messaging using sinch and parse from https://www.sinch.com/tutorials/android-messaging-tutorial-using-sinch-and-parse/.
It works quite good but i am trying to customize it a little such that i can send a message based on the recipients's id and another id . That is i want to send a message taking into consideration two ids( recipientId and another id which i defined).
Please i would appreciate any work arounds this.
Create a WritableMessage(List recipientUserIds, String textBody)
Constructs a message with a list of recipients and a text body.
http://download.sinch.com/docs/android/latest/reference/index.html
i searched this but i couldn't find any solution ...
I want to develop an application in android , in this application you have a friend list. i want to you can send messages with XMPP to your friends, and get messages with XMPP through Google Talk Server . For be able to do this, i created a instance application about sending Google Talk (Xmpp) messages between two Android devices with this link and this link. i used asmack.jar for this and now i can send messages between 2 device. But Problem is this ;
i have two gmail addresses , for example foo#gmail.com and bar#gmail.com .
for chat between 2 devices and send message from first one to second recipient , i have to write "bar#gmail.com/Smack014GAB5B....." as recipent address . if i only write "bar#gmail.com" as recipient , i can't send it ...
Question is , how can i send message to recipient without "Smack014GAB5B..." extension after "/" ?
Any help would be great ...
[Background]
I am looking for some way to automate phone verification (6 digit code sent on cell phones(android) )
[My Way-probably really lame]
Create an app that polls messages coming in, search for keyword "verification".
If found ,get the 6 digit number from the message and update the file over network from cell.
Script on PC will read entry of file after the verification code was sent and use it.
Are there any API's exposed?
Verification is similar to what we have on gmail.
Thanks in advance for any inputs
Sync Messages to another Gmail acocunt where such login is not required.
Create an Console app that reads you gmail folders
poll for latest message, and voila, you have your code.
as we know that Conversation threading is a feature used by many email clients in which the software aids the user by visually grouping messages.
i build an email client application using javamail running on Android.Guide from this post, i have sucessfully to get unread message.
This output is nested mail like converstation
- A replay to B (latest message)
- B reply to A
- mail from A to B (first mail)
My problem is, i want to get only the latest message on this thread [A replay to B (latest message)]. How Should i do it??
You're going to have to request enough envelope/header information to figure out which message that is, then you can fetch only the content for that message.