Hi I made some changes to the following tutorial example...
https://developer.mypurecloud.com/api/tutorials/presence/#javascript
...in order to control users status using the JavaScript SDK.
I started noticing that I was not receiving the notification when the user goes to Available in the following scenario:
- Using the custom app, I change the user status to for example "Meeting"
- Using the PureCloud UI, that user tries to change its status to "Available".
The custom app doesn't receive the presence change notification
The PureCloud UI of the user shows him as Available (the green in the user profile picture)
It looks like the problem is not that the custom app is not receiving the notification of the user changing to Avaliable, the problem is that the user is not really changing its status to Available despite of clicking Available and see its profile picture with the green circle and status Available.
I can say that because in addition to not receiving the notification if I check the status of that user in its queue I can see that the user is not changing its status to Available, it's still in a Meeting.
It's strange because if I repeat the same steps but in the step 2 the user changes its status to another one for example Busy or Meal, it works with no problem (the user does change its status and the custom app receives the notification) and from there now the user can change its status to Available.
I wanted to check if running the same tutorial example (with no changes but the client id) I was going to experience the same behavior and yes I do experience the same issue.
I don't know if I'm missing something that the example doesn't take into account.
Thanks,