I want to load a JavaScript
file in Webview
with xamarin c#
. while loading file, I am not getting content on webview
, it just shows empty and in logs getting error
[chromium] [INFO:CONSOLE(2)] "Uncaught Error: getSessionData requires two non-null arguments (domain, keys).", source: https://sodexosms--univcrm.my.salesforce.com/embeddedservice/5.0/frame/session.esw.min.js (2)
Below file I am using
<html>
<head>
</head>
<body>
<script type='text/javascript'>
var initESW = function (gslbBaseURL) {
embedded_svc.settings.displayHelpButton = true; //Or false
embedded_svc.settings.language = ''; //For example, enter 'en' or 'en-US'
embedded_svc.settings.enabledFeatures = ['LiveAgent'];
embedded_svc.settings.entryFeature = 'LiveAgent';
embedded_svc.init(
'https://ulr.my.salesforce.com',
'https://ulr.cs189.force.com/visualforce',
gslbBaseURL,
'00D7a00000055uj',
'US_Universities',
{
'baseLiveAgentContentURL': 'https://ulr.com/content',
'deploymentId': '5720Q08Oqg',
'buttonId': '570008PID',
'baseLiveAgentURL': 'https://ulr.salesforceliveagent.com/chat',
'eswLiveAgentDevName': 'EmbeddedServiceLiveAgent_Parent04I0UAQ_17d9a605e8e',
'isOfflineSupportEnabled': false
}
);
};
if (!window.embedded_svc) {
var s = document.createElement('script');
s.setAttribute('src', 'https://ulr/embeddedservice/5.0/esw.min.js');
s.onload = function () {
initESW(null);
}
document.body.appendChild(s);
}
else {
initESW('https://service.force.com');
}
</script>
</body>
</html>
How can I fix it ?