open-cti-demo-adapter icon indicating copy to clipboard operation
open-cti-demo-adapter copied to clipboard

CTI JS not loading up

Open nikhilcloudroute opened this issue 7 years ago • 7 comments

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.

nikhilcloudroute avatar Jul 04 '17 13:07 nikhilcloudroute

@dlouvton Can you help with this?

nikhilcloudroute avatar Jul 05 '17 14:07 nikhilcloudroute

@nikhilcloudroute did you figure out the problem, I am also having the same issue

Sarabjee361 avatar Jan 29 '18 13:01 Sarabjee361

@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.

nikhilcloudroute avatar Jan 29 '18 13:01 nikhilcloudroute

`<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>`

nikhilcloudroute avatar Feb 01 '18 08:02 nikhilcloudroute

@Sarabjee361 This worked for me.

nikhilcloudroute avatar Feb 01 '18 08:02 nikhilcloudroute

@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 ?

Sarabjee361 avatar Feb 04 '18 18:02 Sarabjee361

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

nikhilcloudroute avatar Feb 05 '18 05:02 nikhilcloudroute