smack

send notification using openfire xmpp server android using callbackonoffline

柔情痞子 提交于 2020-01-17 05:48:30
问题 I am currently developing chat application using openfire and smack library in android.I have installed openfire on my windows machine and also xampp server on it.I am able to do the android device to device chat using openfire,smack and xampp.I want to send notification when user is unavailable to chat.I found that that there is plugin available in openfire with name callbackonoffline.but i do not know how should i use it from my client android device to receive notification.I am doing using

Android smack 4.1 issue with connection

时光总嘲笑我的痴心妄想 提交于 2020-01-15 04:04:49
问题 I'm trying to make a connection with GoogleTalk in android using Smack . I've followed numerous tutorials examples on the internet yet still I can't seem to make it work. public static final String HOST = "talk.google.com"; public static final int PORT = 5222; public static final String SERVICE = "gmail.com"; public static final String USERNAME = "myemail@gmail.com"; public static final String PASSWORD = "mypassword"; My above credentials are correct... XMPPTCPConnectionConfiguration.Builder

SSL handshake hang

折月煮酒 提交于 2020-01-14 12:58:10
问题 I have seen this question around the forums but couldn't find any appropriate fix. Also all those questions are missing some info, so thought to put all what i have learned here. connecting the dots. I am working with SSL/TLS in openfire with 2 way authentication. Got a self signed wildcard certificate. which means i have my CA in both client and server. Now this works but sometimes, SSL handshake stucks at some particular line. Logs from server side: org.apache.mina.filter.ssl.SslFilter -

how to handle keep alive connection in android Service

情到浓时终转凉″ 提交于 2020-01-14 09:00:10
问题 I am using asmack for an android IM application, where I am using remote service with AIDL interface. Inside of onStartCommand method of my service I write code as below. I create connection and then login using that. When anyone run my application inside onCreate method of main activity of my application run my service getApplicationContext.StartService(serviceIntent) . It's working fine, but after few minutes (sometimes 10 minutes and some time more than ten) messageListener that I attach

Parsing EventElement for XMPP using Smack Library

末鹿安然 提交于 2020-01-13 19:23:09
问题 Can anyone please help to show me on how to parse this Event pub element and get the Message object for the following Packet. Maybe my keyword/search term googling is not correct but I'm not able to find anything helpful while looking for the documentation or tutorial about this. I have read something about PacketParserUtils and XmlPullParser and tried to implement it, I keep on getting null. Code EventElement event = groupMessage.getExtension("event", "http://jabber.org/protocol/pubsub#event

Sending Notification to user when user is offline in android using XMPP

倖福魔咒の 提交于 2020-01-13 12:05:49
问题 I implemented an Android chat application using Smack client with XMPP server. Everything works fine when the user is online, now when the user is offline (the app is not in running state). I would like to push notification using GCM. Is there a way to achieve that, and is there a way that we can manage our server itself to take care of that? 回答1: You can send push notification any time the user is online or not but the device has internet.You have all devices device tokens so when you send a

Sending Notification to user when user is offline in android using XMPP

主宰稳场 提交于 2020-01-13 12:05:08
问题 I implemented an Android chat application using Smack client with XMPP server. Everything works fine when the user is online, now when the user is offline (the app is not in running state). I would like to push notification using GCM. Is there a way to achieve that, and is there a way that we can manage our server itself to take care of that? 回答1: You can send push notification any time the user is online or not but the device has internet.You have all devices device tokens so when you send a

smack RosterListener not working in Android

半腔热情 提交于 2020-01-13 10:26:54
问题 Currently I am Working chat applicaiton using Xmpp SMACK API.but when i have called addrosterListener then i am not getting Presence current status.I have to reference of http://www.igniterealtime.org/builds/smack/docs/3.2.2/javadoc/org/jivesoftware/smack/RosterListener.html .please help me. roster.addRosterListener(new RosterListener() { @Override public void presenceChanged(Presence presence) { Log.d("pewsence ", "pewsence Status: " + presence.getFrom()); Log.d("pewsence ", "pewsence to

XMPP events on Android

…衆ロ難τιáo~ 提交于 2020-01-13 03:19:26
问题 I'm trying to develop a background process that intercepts a XMPP message and performs an action, I'm using asmack as the main XMPP library. I presume I need a broadcastReciever that responds to a specific intent. The question is how to raise the intent? It must be possible as this functionality is present in the google talk client. many thanks in advance. 回答1: If you really want to achieve this behavior, you might think about a persistent background service running the asmack XMPP client.

android file transfer using smack

≯℡__Kan透↙ 提交于 2020-01-12 08:37:53
问题 I am working on chatting application and i have to implement file transfer using smack api. I am able to Connect to the open fire server and can also chat with another client.But i dont know how to implement file transfer..I have found a code snippet but i am not ableto send it using that also.Following is the code snippet i am using: public void SendFile(final String Receiver, final String Directory) { Thread thread = new Thread() { public void run() { ServiceDiscoveryManager sdm =