xmpp

Facebook Chat difficulty user's JID

岁酱吖の 提交于 2019-12-23 06:03:05
问题 I've a problem connecting to Facebook's XMPP to use chat api. In fact the only problem is that I don't know the JID, sometime user doesn't have provided his username and it won't work simply by settings his/her userID as an JID. I've tried my own JID from facebook that I use in iChat and it worked perfectly. So, according to the docs I should rather log user to the chat by using access token instead of username/password. I'm successfuly logged in, the accesss token is in the form: 18112...

Openfire help. Custom database (tables,fields)

拈花ヽ惹草 提交于 2019-12-23 05:01:15
问题 I created a database for my chat application, which has, for example, more fields on the "user" table. How can I implement it in openfire? I've already connected openfire to a mysql external database on my server. Thanks. 回答1: Have you tried with vCard? Surely if you connect your Openfire instance with an LDAP server you can retrieve other user fields (Organization unit, phone number, ...) using vCard. Maybe this approach could work also for custom database integrated in Openfire; check also

Openfire help. Custom database (tables,fields)

蹲街弑〆低调 提交于 2019-12-23 05:01:02
问题 I created a database for my chat application, which has, for example, more fields on the "user" table. How can I implement it in openfire? I've already connected openfire to a mysql external database on my server. Thanks. 回答1: Have you tried with vCard? Surely if you connect your Openfire instance with an LDAP server you can retrieve other user fields (Organization unit, phone number, ...) using vCard. Maybe this approach could work also for custom database integrated in Openfire; check also

Resuming XMPP connection upon page refresh

╄→尐↘猪︶ㄣ 提交于 2019-12-23 04:55:49
问题 I am not able to maintain the connection on page refresh. Initially upon every refresh Strophe connection object is lost. So, the first approach I took was reconnecting on refresh. I am saving the JID, SID and RID in localStorage send the strophe attach call with saved details. AuthHandler.attach_params(jid_frm_storage, sid_frm_storage, rid_frm_storage); The attach callback is in actual AuthHandler Object that I have created and is logging perfectly that means it is okay to assume that my

asmack : Receiving custom IQ messages in PacketListener

不羁的心 提交于 2019-12-23 04:42:10
问题 I am using asmack library for an XMPP chat application. I have some issues in receiving few custom IQ packets. This is my PacketListener code : PacketTypeFilter filter = new PacketTypeFilter(Packet.class); connection.addPacketListener(new PacketListener() { @Override public void processPacket(Packet packet) { Log.i("PacketListener : ", "Received Packet in General : " + packet.toXML()); } }, filter); It receives some IQ packets, but doesn't receive some other IQ packets. But, the asmack

how we can end the session of praticular user in XMPP and logout form the chat

人走茶凉 提交于 2019-12-23 04:18:09
问题 Button logout = (Button) this.findViewById(R.id.btlogout); logout.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub connection.disconnect(); setContentView(R.layout.login); } }); this code is allowing me logout but not killing the session and the page which i am redirecting that page's button is not working . 回答1: First of all send presence packet to server and then you should logout. This way your session will be killed

Sending inline images using Smack XMPP

为君一笑 提交于 2019-12-23 04:10:12
问题 I am about to create a simple xmpp java client application and for this I am considering to use the Smack XMPP library, which works pretty well. One feature of the client should be to send inline images to your chatpartner. I browsed through the javadoc of SMACK but I was not able to find how it's possible to send images or in general binary data with SMACK/XMPP. I am not talking about a standard file transfer that the receiving user has to accept, but rather an image which can be sent within

Disposing of XmlReader with pending async read

ε祈祈猫儿з 提交于 2019-12-23 04:03:33
问题 I'm writing a .NET XMPP library for fun and as has been discussed elsewhere the XmlReader implementation in versions prior to .NET 4.5 was not suitable for parsing XML from a NetworkStream as it would not begin parsing until it filled an internal 4KB buffer or reached EOF. Other libraries got around this by not using XmlReader at all. As mentioned in the previously linked question, jabber-net uses a port of a Java XML parser. An implementation I found while searching, Babel IM, uses its own

Trying to reach my openfire server through my android client

旧巷老猫 提交于 2019-12-23 03:12:12
问题 I want to create my own XMPP android client . So I begane with the samsung tutorial which interface itself with gmail and that you can find here : http://developer.samsung.com/android/technical-docs/Building-a-Chat-Application It worked like a charm. Now I tryed to setup this client for working with my openfire server. For this I converted the folowing lines: public static final String HOST = "My public ip(82.65....)"; public static final int PORT = 5222; public static final String SERVICE =

iOS XMPP received message in conversation screen

我怕爱的太早我们不能终老 提交于 2019-12-23 03:09:46
问题 I am working on XMPP based project. I am able to send message and it displays in conversation screen but when I receive message it only show in alertview not able to see in conversation screen. - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(messageReceived:) name:MessageRecivedNotif object:nil]; appdelegate=(AppDelegate*)[[UIApplication sharedApplication] delegate]; [self