Remote when the recipient is in different states
Remote behaves in different ways depending on whether the recipient of a Remote-sent message is online or offline, and has a mobile phone number registered or not. This blueprint documents Remote's behaviour in each state.
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Medium
- Drafter:
- Patrick Stevens
- Direction:
- Needs approval
- Assignee:
- Patrick Stevens
- Definition:
- Approved
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- None
- Started by
- ChrisD
- Completed by
- ChrisD
Related branches
Related bugs
Sprints
Whiteboard
We do not distinguish between the various Available states (like 'online', 'away', 'dnd'). The only distinction is between the XMPP Available and Unavailable.
Message format: "Remote notification received: <message>".
# Flow
* User does not have an SMS number stored: send them a message through the ReliableSend API. (Currently that will cause the message to be sent immediately if the user is Available, or to be sent by Endroid once the user becomes Available next.)
* User has an SMS number stored: send them a ReliableSend message. Additionally, if the user is Unavailable, send them an SMS.