Comments (5)
I used this technique, calling the following code immediately after the streams api has initialised.
const w = window.open('', connect.MasterTopics.LOGIN_POPUP);
if (w) {
w.close();
}
Works for me without side effects.
from amazon-connect-streams.
That works perfectly for me. Thanks!
from amazon-connect-streams.
@AndySteel-kcom Thank you.
I am a newbie can you please help me in it as where to use this code? you said right after the streams api has initialized. is it index.js or where?
@mschersten please guide as you have done..
Like this?
connect.core.initCCP(containerDiv,
{
});
const w = window.open('', connect.MasterTopics.LOGIN_POPUP);
if (w) {
w.close();
}
from amazon-connect-streams.
Hi @AbdulQayyumaq,
I'll give a brief explanation of how that worked, but I believe this has been replaced by a new configuration option.
In the old way, you would initialize Connect, and then subscribe to agent events, and then close the window in the agent event subscription:
connect.core.initCCP(containerDiv,{});
connect.agent(subscribeToAgentEvents);
function subscribeToAgentEvents(agent) {
const w = window.open('', connect.MasterTopics.LOGIN_POPUP);
if (w) {
w.close();
}
};
But now there is a method to autoClose, search the documentation for "autoclose" and you'll find options.loginOptions.autoclose, and options.loginPopupAutoClose. So I think you can just do
connect.core.initCCP(containerDiv, {
loginPopupAutoClose: true,
loginOptions: {
autoClose: true
}
});
With all the other required options, of course.
from amazon-connect-streams.
Thank you. I have done it. yeah there is an option of autoClose but it doesn't working as login popup got open in a new window but couldn't get closed.
i have used this solution its working only in Chrome but not in Edge.
from amazon-connect-streams.
Related Issues (20)
- [issue] Popping up the Amazon Connect login screen in the connect.core.initCCP() function HOT 3
- Warnings popup when running 3rd party applicaiton locally
- [Question] CCP for device settings HOT 1
- [Errors] When a supervisor is monitoring a call with multi party enabled, if an agent tries to swap or transfer to a quick connect, it fails HOT 4
- contact.onRejected is not available HOT 1
- Feature Request: use setEchoLevel and setLogLevel at the top level to change CCP logs HOT 2
- Agent mute button is stuck and wrongly showing unmute agent when agent is in a conference and silently monitored by a supervisor HOT 3
- Request to add Contact.getChannelContext to index.d.ts HOT 1
- WebRTC - Failing to join video session - AudioJoinedFromAnotherDevice HOT 2
- OnRefresh is invoked after a contact has ended showing both the initial and third party connections as active HOT 6
- ccp cannot initialized when disabled the third party cookie
- Unable to Login with amazon connect Streams (Periority High) HOT 4
- Pop-up warning message when an agent ON CALL attempts to logout HOT 3
- how to send and receive email in Amazon connect HOT 1
- Amazon connect Task flow stopped working HOT 1
- amazon instance integrate with SAML popup window can not close HOT 1
- connect.BaseConnection.getEndpoint() does not provide proper details of endpoint
- onEnded no disconnectReason provided
- Initialization Failed
- Auto Login & Login pop screen freezes with Amazon connect streams
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-connect-streams.