developerforce / open-cti-demo-adapter

Other
91 stars 95 forks source link

Open CTI with Lightning component #26

Open aish2903 opened 5 years ago

aish2903 commented 5 years ago

Hi,

I'm completely new to Open CTI. Just had a question if it is possible to refer a Lightning component directly from the Call center'c CTI adapter URL instead of calling the Visualforce page.

dlouvton commented 5 years ago

No

On Sun, Sep 9, 2018, 22:27 aish2903 notifications@github.com wrote:

Hi,

I'm completely new to Open CTI. Just had a question if it is possible to refer a Lightning component directly from the Call center'c CTI adapter URL instead of calling the Visualforce page.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/developerforce/open-cti-demo-adapter/issues/26, or mute the thread https://github.com/notifications/unsubscribe-auth/AGVkCo1cea2X-hAVD1CiKdPkxAFb6tPnks5uZfhfgaJpZM4Wgu3g .

ibrahimryu commented 2 years ago

Hello dlouvton, i'm trying to use open cti with this import in my aura component without using visualforce page <ltng:require scripts="/support/api/47.0/lightning/opencti_min.js"></ltng:require> but the callback does not work when i try : `

    disableClickToDial: function(helper) {
          sforce.opencti.disableClickToDial({callback: (response) => {
                  helper.callback(response);
              }
          });
      },
callback: function(response) {
    if (response.success) {
        console.debug('API method call executed successfully!');
    } else {
        console.error('Something went wrong! Errors:', response.errors);
    }
},

` i wonna know if there is solution to this issue. Thanks