Asutosh11 / asmack

Automatically exported from code.google.com/p/asmack
Other
0 stars 0 forks source link

processMessage(Chat chat, Message message) not working #38

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I am using aSmack on android
1.I have a System.out.println()(1st statement in function) inside the public 
void processMessage(Chat chat, Message message);
but in the DDMS log is not visible so it concludes that it doesn't hit that 
function.
whereas when i use Smack.jar(patched..available in net)i am able to receive the 
message.

Can you tell me how to retrieve the message using aSmack.jar?

Original issue reported on code.google.com by satya.bh...@gmail.com on 28 Sep 2010 at 10:44

GoogleCodeExporter commented 8 years ago
Hi,

I am experiencing the same behavior with aSmack. 
public void processMessage(Chat chat, Message message) receives only one 
message of type "normal".

Using the "patched" Smack.jar fixes the problem.
Link to the patched library: 
http://people.apache.org/~dims/android/XMPPClient-2.zip

Thank you for your efforts to get Smack on Android.

Original comment by nikola.z...@gmail.com on 22 Nov 2010 at 4:00

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi,

And how can we fix this problem?,
I've read here: http://community.igniterealtime.org/message/189614 that 
sometimes client (ex. psi) creates at response a new chat because it doesn't 
specify the threadid, and the client in the android app can't read the message 
because the response message is not in the chat it was supossed to be.

I've also read there that there are a patch for this and the patch has not been 
applied to asmack-2010.05.07.jar version (at least not the full version of the 
patch included in chat_manager.patch.zip file at comment with date 24-feb-2010) 
having been this release launched much later than the patch.

So, in my opinion the problem is not  fixed yet or at least it has not a clear 
solution, or I've not found this solution. 

My question is quite simple:

- What can we do to receive messages from chat at the ProccessMessage method 
inside the class MessageListener with asmack-2010.05.07.jar release in our 
Android application?

Thank's everyone.

Original comment by ser.mar....@gmail.com on 29 Dec 2010 at 9:33

GoogleCodeExporter commented 8 years ago
 I have also meet this problem,and I confirm this is a bug ,and that is a book android/ophone develop you can search in google/baidu,search xmpp you can find the answer to resolver..

Original comment by zengqin...@gmail.com on 31 Mar 2011 at 5:39

GoogleCodeExporter commented 8 years ago
did some one figure out how to solve this problem...
Is there any alternative way to recieve messages

Original comment by dharmas...@gmail.com on 13 Apr 2011 at 1:47