xmpp

How To Create Service In Android Which Makes Persist Xmpp Connection With XMPP Server?

流过昼夜 提交于 2019-12-20 14:22:09
问题 After searching a lot on Internet we have came to one conclusion in order to ensure an persist connection with XMPP server we have to create a service, We have created one which uses Smack library to connect with XMPP server and it is working fine with mobile and wi-fi network. Every time you make something design approach always matter!!!, Smack have this reconnection mechanism already implicitly implemented in there library which listen to connection and if connection drops Smack try to

Methods for new user registration xmpp framework iOS

夙愿已清 提交于 2019-12-20 12:25:22
问题 I have developed the XMPP Chat client for iOS and now I'm researching for how to do a new user registration from iOS itself. Can anyone help with the methods used to register a new user. As it needs to communicate with the Server and store the username and password to the server database. Please help I'm searching it from 2 days. 回答1: This solution HAS WORKED for me NSString *username = @"rohit@XMPP_SERVER_IP_HERE"; // OR [NSString stringWithFormat:@"%@@%@",username,XMPP_BASE_URL]] NSString

How to determine the message status (read/unread) in chat?

为君一笑 提交于 2019-12-20 10:56:27
问题 How to determine the message status (read/unread). Chat is realized with the XMPP protocol. 回答1: XEP-0184: Message Delivery Receipts supports notifying senders when their message has been delivered. You might be able to use that as a building block, as long as you don't expect existing clients to send these receipts -- the XEP is not widely-implemented today. 回答2: I think you need to use the Displayed Chat Marker, per http://xmpp.org/extensions/xep-0333.html 回答3: If you want to get the read

How to get timestamp of incoming xmpp message?

梦想的初衷 提交于 2019-12-20 09:56:11
问题 I am using aSmack library to communicate with remote xmpp server. I am able to send/receive messages, but I want to get timestamp of incoming message. Could you tell me please, is it possible at all? Because I can't find anything about this question. Thanks in advance 回答1: Timestamp is not part of the regular messages. Therefore you cannot extract it. There is a spec (as mentioned by @Dmitry), but this only applies to specific types of messages. Typically those that are NOT realtime, such as

how to check received message is read or unread in xmpp framework in ios

感情迁移 提交于 2019-12-20 09:38:18
问题 i am developing chat application using xmppframework and i am successfully completed the send and receive message , but 1) if i am chat with user A and user B send me message the how can i identify the user B send me the message. (i already maintain the messages in core data so message will be saved) 2) how can i identify the received message is read or unread NOTE : for message saving i used xmppMessageArchivingStorage = [XMPPMessageArchivingCoreDataStorage sharedInstance];

ejabberd and Push Notification

北战南征 提交于 2019-12-20 09:21:58
问题 I have integrate chat system in my iOS and Android app using XMPP. I have used ejabberd 2 in the server side. Chatting sytem works fine. I want to integrate push notification in my chating using APNS and GCM. How can I send a push notification with each chat message ? ejabberd 2 has any API or extensions available to implement this feature ? Help is highly appreciable, 回答1: Please use the below blog , it is very simple and useful, it is works fine for me. http://symmetricinfinity.com/2013/01

XMPP transport to another protocol

强颜欢笑 提交于 2019-12-20 06:43:02
问题 I would like to add support of ICQ in my application using jabber-transport. I use xmpp4r ruby's library. All that I found doesn't show how to login to external (icq) server and how to send messages. Can you show example of code or text explanation how to do so? (may be not using xmpp4r and ruby, I only need a hint.) 回答1: I found solution thanks to canhaschat plugin source code require 'xmpp4r' #connect to jabber jid=Jabber::JID.new "your_jid" client=Jabber::Client.new jid client.connect

Xamarin.Forms Portable Class Library Project with Sharp.XMPP library

╄→尐↘猪︶ㄣ 提交于 2019-12-20 06:38:18
问题 an specific issue has occured in my project. I've found only one library for C# supporting Android (in Xamarin): Sharp.XMPP, NuGet, but I have troubles with it. When I write some sample code in separated portable class library, I get these errors: Error 1: '.ctor' is not supported by the language by the line using (XmppClient client = new XmppClient(hostname, username, password)) { ... } Next: Error 2: Metadata file '...\Project.Jabber.dll' could not be found Warnings 2-6: Reference to type

'remote-server-timeout' exception as I try to connect to the server

柔情痞子 提交于 2019-12-20 06:26:15
问题 While trying to connect to openfire server through the following code : Connection connection = new XMPPConnection("https://192.168.0.101:5222"); connection.connect(); I get an exception which says : https://192.168.0.101:5222:5222 Exception: Could not connect to https://192.168.0.101:5222:5222.; : remote-server-timeout(504) What could be the reason for this ? Note : I have allowed openfire fire server through the firewall.I also tried putting off the firewall, but the same result.Server is

Get XMPP Chat History OpenFire

跟風遠走 提交于 2019-12-20 04:37:11
问题 I am trying to implement a chat application using XMPPFramework in iOS, using OpenFire server. My chat is working fine, I am trying to retrieve chat history from server. Ofcourse I have enabled Message Archiving on Server. This is the Request I am sending <iq type="get"> <retrieve xmlns="urn:xmpp:archive" with="dev_user80@mydomain"> <set xmlns="http://jabber.org/protocol/rsm"> <max>100</max> </set> </retrieve> </iq> This is the response I am getting. <iq xmlns="jabber:client" type="error" to=