open-cti-demo-adapter
open-cti-demo-adapter copied to clipboard
CTI JS not loading up
Hi There,
I am getting "Uncaught Failed to initialize Open CTI. Ensure that it is loaded from the right frame with correct URL parameters" After debugging the /support/api/38.0/lightning/opencti.js at line 73, param.mode is undefined. How do we set this ?
Regards.
@dlouvton Can you help with this?
@nikhilcloudroute did you figure out the problem, I am also having the same issue
@Sarabjee361 I haven't looked at that after i posted it. I have this in my todo list this week. Will drop you a note if i find any solution, or you can if you find any solution by yourself.
`<apex:page showHeader="false" showChat="false" sidebar="false"> <apex:includeLightning />
<apex:outputpanel layout="none" rendered="{!!CONTAINS($CurrentPage.URL, 'lightning.force.com')}"> </apex:outputpanel> <apex:outputpanel layout="none" rendered="{!CONTAINS($CurrentPage.URL, 'lightning.force.com')}"> </apex:outputpanel></apex:page>`
@Sarabjee361 This worked for me.
@nikhilcloudroute Thanks for the sharing the solution, I would like to know how are you using this, I mean you have created a apex page inside salesforce and using the page as adaptor ?
I am using salesforce lightning out in the lightning component, then this lightning component is used inside a VF page(above code is for Vf). You can find the complete code https://github.com/developerforce/open-cti-demo-adapter/blob/master/src/aura/demoAdapterOut/demoAdapterOut.app