notifyInitializationComplete() for Lightning Experience
Notifies Salesforce that the softphone initialization is complete and that Salesforce should not switch to a standby URL. While the softphone initializes, a loading icon displays in the softphone area. To use a standby URL, you must specify the reqStandbyUrl and reqTimeout fields, in the call center’s definition file. For more information, see Optional Call Center Elements and Attributes
The notifyInitializationComplete() method for Lightning Experience works differently from the Salesforce Classic method.
- In Lightning Experience, the method takes an optional callback object. In Salesforce Classic, the method doesn’t take arguments.
- In Lightning Experience, after you go to the standby URL your browser session continues to use that standby URL. To force the standby URL check, you must restart the browser—close it and open it again. In Salesforce Classic, the standby URL check was completed only after you logged in to Salesforce, and the check wasn’t repeated if you kept using the same Salesforce session.
| Name | Type | Description |
|---|
callback | function | JavaScript method executed when the API method call is completed. |
");else if(O._boomrl=function(){t()},O.addEventListener)O.addEventListener("load",O._boomrl,!1);else if(O.attachEvent)O.attachEvent("onload",O._boomrl);d.close()}function a(e){window.BOOMR_onload=e&&e.timeStamp||(new Date).getTime()}if(!window.BOOMR||!window.BOOMR.version&&!window.BOOMR.snippetExecuted){window.BOOMR=window.BOOMR||{},window.BOOMR.snippetStart=(new Date).getTime(),window.BOOMR.snippetExecuted=!0,window.BOOMR.snippetVersion=12,window.BOOMR.url=n+"96ZND-LJLSH-JXHC9-F8GQP-6WCGS";var o=document.currentScript||document.getElementsByTagName("script")[0],i=!1,r=document.createElement("link");if(r.relList&&"function"==typeof r.relList.supports&&r.relList.supports("preload")&&"as"in r)window.BOOMR.snippetMethod="p",r.href=window.BOOMR.url,r.rel="preload",r.as="script",r.addEventListener("load",e),r.addEventListener("error",function(){t(!0)}),setTimeout(function(){if(!i)t(!0)},3e3),BOOMR_lstart=(new Date).getTime(),o.parentNode.appendChild(r);else t(!1);if(window.addEventListener)window.addEventListener("load",a,!1);else if(window.attachEvent)window.attachEvent("onload",a)}}(),"".length>0)if(e&&"performance"in e&&e.performance&&"function"==typeof e.performance.setResourceTimingBufferSize)e.performance.setResourceTimingBufferSize();!function(){if(BOOMR=e.BOOMR||{},BOOMR.plugins=BOOMR.plugins||{},!BOOMR.plugins.AK){var n=""=="true"?1:0,t="",a="eyab6kadmwalajqacqeoyaaabnvdbp3r-f-c4964d9ec-clienttons-s.akamaihd.net",o="false"=="true"?2:1,i={"ak.v":"41","ak.cp":"1836958","ak.ai":parseInt("1224868",10),"ak.ol":"0","ak.cr":1,"ak.ipv":6,"ak.proto":"h2","ak.rid":"9127a2b","ak.r":47500,"ak.a2":n,"ak.m":"dsca","ak.n":"essl","ak.cport":37372,"ak.gh":"23.213.19.22","ak.quicv":"","ak.tlsv":"tls1.3","ak.0rtt":"","ak.0rtt.ed":"","ak.csrc":"-","ak.acc":"","ak.t":"1781579633","ak.ak":"hOBiQwZUYzCg5VSAfCLimQ==5ue6hITd/7KVdegQcxiHln+Nb0Nv2L5QP9w47vECut+yFbKlfunFjOe5NbHJmyZsDMHgYGuKtohwHuUKEGzKxaVUw69pv3pT/yj3nWS22iiyLrvqw6UU+NasQQ1zKLnR2dkkGpCBL0MakI9Esznd1OkE02a5EgJ+dOozEwwkji+xpT7taEbRNxIQngCL4fPZhwxByg7U7zwjqeVFywedHQpC6mxZk25LYVdDIrZwhNoH+A+tMQiCtpknP67VtyezGfluYIAVQUxfWQ0yt5n5dZTscfHdo235FEQN95cQRUBqIfeV9d0duYB5xk7mh8HZpOEjdl2HrjUgtzdoe9RQ8uhsVre3kL7CmoRhiQg4f533P8VVKs7o9Zbf8MoOFIUVtsS1ENBRnsIn07R4Un4xdZp60e6U9WxkwKALErNcMvc=","ak.pv":"87","ak.dpoabenc":"","ak.tf":o};if(""!==t)i["ak.ruds"]=t;var r={i:!1,av:function(n){var t="http.initiator";if(n&&(!n[t]||"spa_hard"===n[t]))i["ak.feo"]=void 0!==e.aFeoApplied?1:0,BOOMR.addVar(i)},rv:function(){var e=["ak.cport","ak.cr","ak.csrc","ak.gh","ak.ipv","ak.m","ak.n","ak.ol","ak.proto","ak.quicv","ak.tlsv","ak.0rtt","ak.0rtt.ed","ak.r","ak.acc","ak.t","ak.tf"];BOOMR.removeVar(e)}};BOOMR.plugins.AK={akVars:i,akDNSPreFetchDomain:a,init:function(){if(!r.i){var e=BOOMR.subscribe;e("before_beacon",r.av,null,null),e("onbeacon",r.rv,null,null),r.i=!0}return this},is_complete:function(){return!0}}}}()}(window);
The Open CTI framework was notified that the softphone initialization is complete.