The Web Messaging SDK init() call completes without throwing a JS exception, but the rendered UI ignores the launcher and theme properties passed in the config object. Specifically, the launcher icon remains fixed at the bottom-right corner despite setting position: 'left', and the primary color defaults to the Genesys Cloud brand blue instead of our custom hex code #2C3E50.
I am attempting to programmatically configure the deployment via the genesys-cloud-messaging SDK within a React application. The goal is to align the widget aesthetics with our enterprise dashboard, which is built using the same analytics APIs I use for reporting. I have verified that the deploymentId is correct and the user is authenticated, but the visual customization seems to be locked or ignored by the client-side renderer.
Here is the initialization snippet:
import { init } from 'genesys-cloud-messaging';
const config = {
deploymentId: 'a1b2c3d4-5678-90ab-cdef-1234567890ab',
theme: {
primaryColor: '#2C3E50',
backgroundColor: '#FFFFFF',
textColor: '#333333'
},
launcher: {
position: 'left',
offsetX: 20,
offsetY: 20
}
};
init(config);
Environment details:
- SDK Version:
genesys-cloud-messaging@3.1.0 - Browser: Chrome 114.0.5735.199
- Host Application: React 18.2.0
- Deployment Type: Standard Web Messaging
I have checked the browser network tab and see the initial GET request to /api/v2/webmessaging/deployments/{deploymentId} succeeds with a 200 OK. The response payload contains the correct theme and launcher settings as defined in the Genesys Cloud admin console, which suggests the issue might be a conflict between the runtime config object and the server-side deployment configuration, or perhaps the SDK requires a specific flag to allow runtime overrides.
Has anyone successfully overridden the launcher position and colors via the SDK init parameters? Is there a known limitation where the admin console settings take precedence over the client-side config, or am I missing a required property in the config object?