powered by Jive Software

Send message to myself

android

#1

Smack 4.2.1

Is there a way to send a message to myself? I need this for my internal tracking purpose.
May be an IQ or a message stanza.

Thanks!


#2

Sure.

ChatManager.getInstanceFor(connection).chatWith(ownJid).send("Message");

for example


#3

Thanks Paul. Your solution works when MessageCarbon is DISABLED.
The moment I enable MessageCarbon, I do not receive my message to myself.
Any ideas how I can fix this?

Thanks


#4

You could try to send the message to user@server.tld/resource, maybe it will then be delivered back to your device.

On the other hand I cannot think of a reason why you would want to take the extra leap over the server, when you can just process your data on your device directly.