• Dean Thames
  • 0 Points
  • Member since 2015

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 2
I'm trying to use the integration API in a Canvas application hosted in a 3rd party server, and shown in console mode. As per https://developer.salesforce.com/docs/atlas.en-us.api_cti.meta/api_cti/sforce_api_cti_connecting.htm (https://developer.salesforce.com/docs/atlas.en-us.api_cti.meta/api_cti/sforce_api_cti_connecting.htm), I'm including the following javascript in my server:
    <script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
    <script type="text/javascript" src="https://emea.salesforce.com/canvas/sdk/js/34.0/canvas-all.js"></script>
    <script  type="text/javascript"src="https://emea.salesforce.com/canvas/sdk/js/34.0/controller.js"></script>
    <script src="https://emea.salesforce.com/support/api/34.0/interaction.js" type="text/javascript"></script>
    <script src="https://emea.salesforce.com/support/console/34.0/integration.js" type="text/javascript"></script>

When I try to use the integration API, nothing happens (no error, no outgoing requets). Digging a bit, during the page initialization, I've found in the console the message: "Service Cloud Toolkit API cannot be used with your browser.". This message can be found in line 323 in integration.js, in a method that tries to initialize crossdomain communication, and in my case, fails.

Am I missing something? Isn't this 'scenario' (canvas in 3rd party server in console mode) supposed to works?
Thanks in advance,

We have created a custom visual force page (unmanaged) where softphone is not loading. We are getting the below error while opening the visual force page

Uncaught SecurityError: Blocked a frame with origin "https://ap2.salesforce.com" from accessing a frame with origin "https://c.ap2.visual.force.com". Protocols, domains, and ports must match.

However, softphone is successfully loading on other tabs such as Home,Contacts,Accounts etc. We have ensured that the open CTI call center file is assigned to the user and sidebar is set to true in visual force page.

Can anyone help me on this