I discovered that this feature is dependent on both the server and the client. The server and the client need to implement XEP-0280 protocol ("Message Carbons").
- Pidgen does not support this feature.
- The Xabber Beta android app supports it.
- Gajim supports this extension.
- On the server side, we had to include mod_carbons.