hmmm, I also tried 3.10.3 and Rest API plugin 1.1.7 in one of our environments but still not getting presenceStatus. We have several Amazon servers running Ubuntu and it’s not working on any of them.
I’ll try to do the complete fresh install on my local machine with 3.10.3 and check the status. On our Amazon servers we have been only upgrading from 3.9.3, through 3.10.1 and 3.10.2 to the final 3.10.3 version (I think), so I just want to eliminate some upgrade issue by fresh install.
So, I did some more testing and I think now I understand what is going on.
“presenceStatus” is available in the response only when user/client set some custom message for the status.
So if presence status is e.g. set to “Away” on client, but no additional text is set (e.g. “I am watching TV”), then no “presenceStatus” is available in the response.
If also additional message is set, then that one is returned in “presenceStatus”.
I was expecting to see the same value in “presenceStatus” as is displayed in Openfire Admin console -> Sessions -> Client sessions table in Presence column. (at least all other columns match the plugin response)
Unfortunately it seems the plugin is returning only custom presence message, so if we do not update our mobile clients to set also message text I will be no able to retrieve their presence from the plugin (only sessionStatus)
The value from Presence column is exactly what I need.
So there is no field in the Rest Api response representing “presence mode” (online, away, do not disturb, extended away, available for chat), right ???