I am trying to write an XMPP client using Smack, and am hosting my own XMPP server (Prosody), which has MAM enabled. Using other clients MAM works fine, and message histories are restored. However, when trying to implement this code myself, I have run into the issue that MamManager.isSupported() returns false.
I have searched for this issue but haven’t found much about it I have probably made some stupid mistake. I am confident the issue is client-side as MAM works with other clients.
Here is the code, which I call after having authenticated with the server:
MamManager manager = MamManager.getInstanceFor(connectionToServer); manager.isSupported(); //false :(
If I try to use the MamManager anyway, I get XMPPError: service-unavailable - cancel.
Smack version: 4.3.4
Sorry for my poor understanding, I am fairly new to networking in general.
Any help or advice would be much appreciated.
Many thanks, John