error with the library purecloud-client-app-sdk

install the library
purecloud-client-app-sdk to my angular project, then to use it implement the following javascript code as it appears in the documentation

import ClientApp from 'purecloud-client-app-sdk';
let myClientApp = new ClientApp({
pcEnvironmentQueryParam: 'pcEnvironment'
});
but I get the following error in chrome browser "core.js:5967 ERROR Error: Invalid value for query param 'mypurecloud.de' provided. Must be a non-null, non-empty string"

image
Screenshot_1

Hello,

let clientApp = new ClientApp({ pcEnvironmentQueryParam: 'pcEnvironment' });
If you use 'pcEnvironmentQueryParam' parameter in the ClientApp constructor, it will look for a URL query parameter named 'pcEnvironment' and extract its value (https://my_webapp_server/path/index.html?pcEnvironment=mypurecloud.de)

let clientApp = new ClientApp({ pcEnvironment: 'mypurecloud.de' });
If you use 'pcEnvironment' parameter in the ClientApp constructor, it will directly set the region to the value you provide in the ClientApp constructor.

See answer on this other post for more details

Regards,

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.