Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Views is not working in Cutsom CCP #849

Open
nayabrasool4910 opened this issue Mar 12, 2024 · 2 comments
Open

Custom Views is not working in Cutsom CCP #849

nayabrasool4910 opened this issue Mar 12, 2024 · 2 comments

Comments

@nayabrasool4910
Copy link

nayabrasool4910 commented Mar 12, 2024

I am trying to use Views in Custom CCP but I am getting Loading View as shown in below image after call connecting to agent. Need to change anything in the code. Advance Thanks.
views

connect.agentApp.initApp( "customviews", "customviews-container", connectUrl + "/stargate/app", { style: "width:650px; height:600px;" } );

@vvgoyal
Copy link

vvgoyal commented Apr 5, 2024

Hi @nayabrasool4910
We introduced the new stuff in the recent release. here is the documentation to load view with new stuff https://github.com/amazon-connect/amazon-connect-streams/blob/master/Documentation.md#connectagentappinitappname-containerid-appurl-config.

@nayabrasool4910
Copy link
Author

Hi @vvgoyal thanks for the response.

I am using angular to build custom ccp application

I added the same stuff in my code. But I am getting few errors in the code.

Object literal may only specify known properties, and 'customViewsParams' does not exist in type 'AppOptions'.

I removed the code and added only the below code.

contact.onConnected(function (contact) { var attributeMap = contact.getAttributes(); console.log('attributes-----------------', attributeMap) connect.agentApp.initApp( "customviews", "customviews-container", connectUrl + "/stargate/app", { style: "width:400px; height:600px;", } );

when call is connected to agent, Views are not coming.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants