We have a custom agent desktop application built using the Genesys Cloud Platform Client SDK and WebRTC SDK, embedded as an iframe within our client's application.
Issue:
When an agent refreshes the browser page, the WebRTC SDK's WebSocket connection drops during the unload/reload cycle. Genesys detects this disconnect and temporarily sets the agent's presence to Offline (~1–2 seconds). After reconnect, the presence is restored.
Impact:
- Supervisors see a brief Offline status on every refresh
- Agent status timer resets to 0
- Reporting accuracy is affected (extra Offline events)
Environment:
- Region: aps1.pure.cloud
- SDKs: purecloud-platform-client-v2, genesys-cloud-webrtc-sdk
- Auth: PKCE
- Deployment: iframe-based custom desktop
We were advised by support to:
- Lock presence before refresh
- Unlock after reload
Questions:
1. What is the recommended way to implement presence lock/unlock via API?
2. Is there a reliable way to persist agent presence and status duration across page reloads?
Any guidance or best practices would be appreciated.
#PlatformSDK------------------------------
Amit Kamble
Manager
------------------------------