xmpp

How to implement “last seen at” functionality (like whatsapp) in XMPP?

十年热恋 提交于 2020-01-24 06:26:24
问题 I am working on a chat application and want to add "last seen at" functionality. I am trying to implement it by using presence stanzas but getting one issue, please check at below link Not getting unavailable presence of User A when User B is also unavailable Is there any other way to implement last seen at functionality please suggest 回答1: The first Google result for "xmpp last seen" is XEP-0012: Last Activity, which is a protocol extension that can be used to find out when a user was online

How to implement “last seen at” functionality (like whatsapp) in XMPP?

你离开我真会死。 提交于 2020-01-24 06:26:08
问题 I am working on a chat application and want to add "last seen at" functionality. I am trying to implement it by using presence stanzas but getting one issue, please check at below link Not getting unavailable presence of User A when User B is also unavailable Is there any other way to implement last seen at functionality please suggest 回答1: The first Google result for "xmpp last seen" is XEP-0012: Last Activity, which is a protocol extension that can be used to find out when a user was online

GCM connection error

主宰稳场 提交于 2020-01-24 00:18:29
问题 I am trying out implementing gcm server application using XMPP(CCS) and i cant able to connect to the google servers. I am trying out the sample code from http://developer.android.com/google/gcm/ccs.html when i try to connect ccsClient.connect(userName, password); i get the following error gcm.googleapis.com:5235 Exception: XMPPError connecting to gcm.googleapis.com:5235.; : remote-server-error(502) -- caused by: XMPPError connecting to gcm.googleapis.com:5235.: remote-server-error(502)

How to implement XMPP to send push notifications

若如初见. 提交于 2020-01-22 04:54:50
问题 I would like to use XMPP so that my application will send out updates to an android phone (1.5 and higher). I pretty much want to use XMPP to send push notifications to the phone. How would i go about achieving this. At the moment my web application is running on apache tomact with a number of servlets so the android phone can access information, but I'm finding it difficult understanding how I could implement XMPP so that I can push information from the server to the client (android phone).

Is it Ok to use HTTP REST API for Chat application?

霸气de小男生 提交于 2020-01-22 04:42:19
问题 We are building a chat application in Android. We are thinking of using HTTP REST API to send outbound messages. Wanted to know if its a good approach or has any downsides compared to using WebSockets or XMPP (which seems to be more of a defacto standard for transferring chat messages) ? Some of the pros/cons I can think are: + HTTP endpoint is easy to scale horizontally on server side (This is a main concern) + Learning curve for Websockets is steeper compared to HTTP - HTTP messages would

Smack 4.1 SASL authentication error

柔情痞子 提交于 2020-01-21 11:48:48
问题 I am using Smack 4.1 native library for android to develop a chat application. I'm able to set a connection between my application and my server but I'm getting SmackException regarding SASL authentication while logging in. Points to be noted. There is no SASL authentication required on my server side. My application is not crashing but getting the following errors which i have shown below in my log cat snnippet. I'm using eclipse Luna and JDK version 1.7 and I have included the following

Smack 4.1 SASL authentication error

Deadly 提交于 2020-01-21 11:48:26
问题 I am using Smack 4.1 native library for android to develop a chat application. I'm able to set a connection between my application and my server but I'm getting SmackException regarding SASL authentication while logging in. Points to be noted. There is no SASL authentication required on my server side. My application is not crashing but getting the following errors which i have shown below in my log cat snnippet. I'm using eclipse Luna and JDK version 1.7 and I have included the following

Keep the connection alive in openfire but show user as offline in xmpp

泄露秘密 提交于 2020-01-17 12:27:26
问题 I am developing an android chat application using openfire smack library.I have created a bound service to listen to messages when the is in background.The connection object is also maintained by service.Service is working fine as listening to background messages,but the problem is user is shown online all the time when the app is in background.Keeping the connection is also necessary so that user can listen to messages but this connection is showing user online all the time.I want to show

-[XBMessage messageHash]: unrecognized selector sent to instance

删除回忆录丶 提交于 2020-01-17 06:32:39
问题 I've integrated following library from Cocoapods, You may find the code and its sample code at https://github.com/EugeneNguyen/XBChatModule pod 'XBChatModule' This library is used to integrate XMPP Chat in Xcode project. I also added suggested code from its ReadMe file. For your reference I am pasting it below AppDelegate.m [[XBChatModule sharedInstance] setUsername:@"admin"]; [[XBChatModule sharedInstance] setPassword:@"admin"]; [[XBChatModule sharedInstance] setHost:@"sflashcard.com"]; [

getting internal server error on connecting ejabber using Bosh url

泪湿孤枕 提交于 2020-01-16 20:03:40
问题 Getting internal server error on connecting ejabberd using Bosh url. Sucessfully configured ejabberd and working on debian OS. But using that same configuration its getting internal server error on Ubuntu 14.04 OS. Can able to access ejabberd bosh url directly and its working but on connecting mod_rewrite rule in htaccess RewriteRule http/ http://ipaddress:5280/http-bind/ [p], showing the 500 error. 回答1: XMPP Prebind for PHP needs PHP5 curl extension. While Enabling Curl extension , it solved