chat

Quickblox iOS: Connecting 2 users in video chat without initiating a call

匆匆过客 提交于 2020-01-02 23:48:17
问题 I have a video chat requirement wherein I have to connect 2 (somewhat related) users through video chat. I am not finding necessary api to call, hence the question. I am basically following this tutorial but it seems it doesn't have everything I need. I do not need explicit "call to this user" sort of function. The user never gets to see entire user list. As a result, I wonder if I could have X number of users calling and another X number of users waiting to accept that call. To summarize: I

how to turn off notification programmatically in android when app running?

北慕城南 提交于 2020-01-02 08:50:28
问题 I am trying to develop an android app in which i am implementing chat functionality. but when i receive the message it makes a notification sound. How can i stop the notification when the user is using the app programmatically ? private void ChatNotifications(String uid, String fuid, String message) { NotificationCompat.BigTextStyle notiStyle = new NotificationCompat.BigTextStyle(); notiStyle.setBigContentTitle("message"); // notiStyle.setSummaryText(quote); notiStyle.bigText(message); Intent

How to choose indexes for chat application database

给你一囗甜甜゛ 提交于 2020-01-02 07:41:53
问题 I work on a small chat application with database. I create the database shown in the image. I new to indexes and I want to choose the appropriate indexes for the query. Can I use clustered index in the Messages table ? and if I can, Which column (or columns) should have clustered index ? or should I use non-clustered index ? Update : The query that I user to get messages is : Select TextContent From Messages where (SenderId='1' and ReciverID = '2') or (SenderId='2' and ReciverID = '1') order

Communication between browsers via PHP

拟墨画扇 提交于 2020-01-02 05:44:07
问题 I am building a simple ajax chat client for a school project and have thought of a way to implement this, but it seems IMO to be very cumbersome approach: 1) User A sends message which is accepted by a server-side PHP script and saved to database 2) The browser of User B periodically launches a server side PHP script to check if there are any messages in the database for User B. PHP script finds messages from User A and returns them. Is this the right approach? Can communication between these

How to send image in chat usig xmpp framework

孤人 提交于 2020-01-01 22:28:26
问题 Hi I am making an app based on the chatting I can send chat messages, but if i add image attachment to the chat message, its not working.here is my message code if (![[messageStr stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] length] && imgURL==nil) { return; } NSString *MyString; NSDate *now = [NSDate date]; NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@"HH:mm,yyyy/MM/dd"]; MyString = [dateFormatter

iPhone keep websocket open in background

﹥>﹥吖頭↗ 提交于 2020-01-01 22:01:34
问题 acani uses zimt websocket for chat. Can we make it so that when a user closes his phone and puts it in his pocket, he can still receive chat messages from and send location updates to the node.js server? I think this would be nicer than push notifications. Don't you? If not, why should we use push notifications instead or also? Thanks! 回答1: You can't keep a network socket open, unless you are registered for voip/GPS/music playing in the background. if you register for these, and then don't do

iPhone keep websocket open in background

跟風遠走 提交于 2020-01-01 22:01:10
问题 acani uses zimt websocket for chat. Can we make it so that when a user closes his phone and puts it in his pocket, he can still receive chat messages from and send location updates to the node.js server? I think this would be nicer than push notifications. Don't you? If not, why should we use push notifications instead or also? Thanks! 回答1: You can't keep a network socket open, unless you are registered for voip/GPS/music playing in the background. if you register for these, and then don't do

best java jabber client library [closed]

本秂侑毒 提交于 2020-01-01 08:53:12
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . What good/bad experiences do you have with java jabber libraries? 回答1: I've had really good experience with the Smack library. I found it straightforward to use, and pretty easy to get a basic client up and running. The documentation was pretty good as well. 来源: https:/

best java jabber client library [closed]

风流意气都作罢 提交于 2020-01-01 08:53:05
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . What good/bad experiences do you have with java jabber libraries? 回答1: I've had really good experience with the Smack library. I found it straightforward to use, and pretty easy to get a basic client up and running. The documentation was pretty good as well. 来源: https:/

Google chat server archive (XEP-0136)

独自空忆成欢 提交于 2020-01-01 07:32:27
问题 I am looking for a way how to retrieve archive of chat messages from google server via using XEP-0136 standard, but I got these results just trying to ask for the feature. Request: <iq type="get"><pref xmlns="urn:xmpp:archive"/></iq> Response: <iq xmlns="jabber:client" type="error" to="myEmail@gmail.com/9FF72CA7"> <pref xmlns="urn:xmpp:archive"/> <error code="501" type="cancel"> <feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/> </error> </iq> So it looks like google does