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!
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!
Sure.
ChatManager.getInstanceFor(connection).chatWith(ownJid).send("Message");
for example
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
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.