Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agents ignoring offline messages #84

Open
dmvieira opened this issue Apr 26, 2020 · 3 comments
Open

Agents ignoring offline messages #84

dmvieira opened this issue Apr 26, 2020 · 3 comments

Comments

@dmvieira
Copy link

  • SPADE version: 3.1.4
  • Python version: 3.7.7
  • Operating System: Ubuntu 16.04

Description

When you send messages and agents are offline or in unavailable state are ignored when agent back to available state.

What I Did

  • Send message and start receiver agent
  • set_unavailable() agent, send a message to this agent, than set_available() agent
@javipalanca
Copy link
Owner

Yes, this is a feature of XMPP. You cannot send a message to an offline agent unless your server supports and has active the XEP-0136: Message Archiving.

@dmvieira
Copy link
Author

But I'm using Ejabberd and its showing offiline messages, but when agent is up all messages are consumed and ignored

@javipalanca
Copy link
Owner

Hi. I was guessing why this issue happens and it is because supporting offline messages (XEP-0013: Flexible Offline Message Retrieval) requires a proactive action from the client (and also an implementation of the extension in the server side).
This action is not still included in SPADE, but since it is a good feature I'll try to include it in future releases following https://xmpp.org/extensions/xep-0013.html.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants