Fail to init ZAFClient

3 Comentários

  • Greg Katechis
    Zendesk Developer Advocacy

    Hi Camille! I'm not familiar with Angular myself, but if you can provide the full snippets for how you are calling the ZAF client, I can bring it to the brain trust to see if we can help debug this!

    0
  • camille test

    Hi Greg Katechis

    Sorry for the late reply..

    Here is the code snippet

    publicoverrideinitialize(orchestrator: PlatformOrchestrator): void {
    super.initialize(orchestrator);
    this._client = ZAFClient.init();
    // console.log(this._client) prints the function, but function returns false...

    if (this._client) {
    this._client.invoke("resize", { width:"360px", height:"640px" });this._client.invoke("preloadPane");

    this.loggingService.log(LogLevel.Debug, 'SDK Client initialized', this.className);
    } else {
    this.loggingService.log(LogLevel.Error, 'Could not initialize SDK Client', this.className);
    }
    }
    0
  • camille test

    Here is how SDK is required

    <!DOCTYPE html>
    <html lang="en" dir="ltr">
      <head>
        <meta charset="utf-8">
        <title>ZIWO Plugin</title>
        <base href="/">
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        <link rel="stylesheet" href="ziwo.styles.css" media="print" onload="this.media='all'">
      </head>
      <body>
        <ziwo-root automation="pipedrive"></ziwo-root>
        <script src="ziwo.plugin.js" type="module"></script>
        <script src="ziwo.polyfills.js" type="module"></script>
      </body>
    </html>
    0

Por favor, entrar para comentar.

Powered by Zendesk