• UMANG GARG
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 3
    Replies
I am facing a weird issue here, I have a flow embedded in the Aura component. The screen details are visible in Windows when I am seeing by logging the same user but the content (radio button and display text) is not visible on MAC. Are there any updates specific to MAC? 
I have included Iframe in VF page but it is not displaying.
Thing i have done :
1) Allowed All cookies
2) Unchecked - 'Enable clickjack protection for customer Visualforce pages with standard headers'
3) Added the URL in 'Whitelisted Domain for VF'
Still, it is not working.
Could anyone provide any solution for this.
Code snippet -
<apex:page showHeader="false" standardStylesheets="false" sidebar="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0" controller="testIframeController">
        <apex:iframe src="https://www.salesforce.com" id="theFrame" height="500px" width="1000px"/>
 
</apex:page>


 
I have used two Chat buttons, one with pre-chat form and other without pre-chat form with different Deployments. Its working fine if using them seperately in the page. But if using them together in the page, then it is showing configuration of second script on page but request is sent to the agent of first button and vice versa by changing the order of script. Below is my script:
<style type='text/css'>
.embeddedServiceHelpButton .helpButton .uiButton { background-color: #F3AE6E; font-family: "Salesforce Sans", sans-serif; }
.embeddedServiceHelpButton .helpButton .uiButton:focus { outline: 1px solid #F3AE6E; }
@font-face {
font-family: 'Salesforce Sans';
src: url('https://www.sfdcstatic.com/system/shared/common/assets/fonts/SalesforceSans/SalesforceSans-Regular.woff') format('woff'),
url('https://www.sfdcstatic.com/system/shared/common/assets/fonts/SalesforceSans/SalesforceSans-Regular.ttf') format('truetype');
}
</style>
<script type='text/javascript' src='https://service.force.com/embeddedservice/3.0/esw.min.js'></script>
<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.defaultMinimizedText = '...'; //(Defaults to Chat with an Expert)
//embedded_svc.settings.disabledMinimizedText = '...'; //(Defaults to Agent Offline)

//embedded_svc.settings.loadingText = ''; //(Defaults to Loading)
//embedded_svc.settings.storageDomain = 'yourdomain.com'; //(Sets the domain for your deployment so that visitors can navigate subdomains during a chat session)

// Settings for Live Agent
embedded_svc.settings.avatarImgURL = '';
embedded_svc.settings.prechatBackgroundImgURL = '';
embedded_svc.settings.waitingStateBackgroundImgURL = '';
embedded_svc.settings.smallCompanyLogoImgURL = '';

embedded_svc.settings.enabledFeatures = ['LiveAgent'];
embedded_svc.settings.entryFeature = 'LiveAgent';

embedded_svc.init('https://c2s--andrew.cs97.my.salesforce.com', 'https://andrew-tyco.cs97.force.com/livechat', gslbBaseURL, '00D0U000000Cmt0', 'SnapInsTrial', { baseLiveAgentContentURL: 'https://c.la2-c2cs-iad.salesforceliveagent.com/content', deploymentId: '572E0000000blJJ', buttonId: '5730L000000CqGK', baseLiveAgentURL: 'https://d.la2-c2cs-iad.salesforceliveagent.com/chat', eswLiveAgentDevName: 'EmbeddedServiceLiveAgent_Parent04I0U0000000001UAA_15e586bc423'}); };if (!window.embedded_svc) { var s = document.createElement('script'); s.setAttribute('src', 'https://c2s--andrew.cs97.my.salesforce.com/embeddedservice/3.0/esw.min.js'); s.onload = function() { initESW(null); }; document.body.appendChild(s); } else { initESW('https://c2s--andrew.cs97.my.salesforce.com'); }</script>
<style type='text/css'>
.embeddedServiceHelpButton .helpButton .uiButton { background-color: #005290; font-family: "Salesforce Sans", sans-serif; }
.embeddedServiceHelpButton .helpButton .uiButton:focus { outline: 1px solid #005290; }
@font-face {
font-family: 'Salesforce Sans';
src: url('https://www.sfdcstatic.com/system/shared/common/assets/fonts/SalesforceSans/SalesforceSans-Regular.woff') format('woff'),
url('https://www.sfdcstatic.com/system/shared/common/assets/fonts/SalesforceSans/SalesforceSans-Regular.ttf') format('truetype');
}
</style>
<script type='text/javascript' src='https://service.force.com/embeddedservice/3.0/esw.min.js'></script>
<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.defaultMinimizedText = '...'; //(Defaults to Chat with an Expert)
//embedded_svc.settings.disabledMinimizedText = '...'; //(Defaults to Agent Offline)

//embedded_svc.settings.loadingText = ''; //(Defaults to Loading)
//embedded_svc.settings.storageDomain = 'yourdomain.com'; //(Sets the domain for your deployment so that visitors can navigate subdomains during a chat session)

// Settings for Live Agent
embedded_svc.settings.avatarImgURL = '';
embedded_svc.settings.prechatBackgroundImgURL = '';
embedded_svc.settings.waitingStateBackgroundImgURL = '';
embedded_svc.settings.smallCompanyLogoImgURL = '';

embedded_svc.settings.enabledFeatures = ['LiveAgent'];
embedded_svc.settings.entryFeature = 'LiveAgent';

embedded_svc.init('https://c2s--andrew.cs97.my.salesforce.com', 'https://andrew-tyco.cs97.force.com/livechat', gslbBaseURL, '00D0U000000Cmt0', 'SnapInsWoPC', { baseLiveAgentContentURL: 'https://c.la2-c2cs-iad.salesforceliveagent.com/content', deploymentId: '5720U0000004CBI', buttonId: '5730L0000000ImX', baseLiveAgentURL: 'https://d.la2-c2cs-iad.salesforceliveagent.com/chat', eswLiveAgentDevName: 'EmbeddedServiceLiveAgent_Parent04I0U0000000006UAA_15e60c53f5b'}); };if (!window.embedded_svc) { var s = document.createElement('script'); s.setAttribute('src', 'https://c2s--andrew.cs97.my.salesforce.com/embeddedservice/3.0/esw.min.js'); s.onload = function() { initESW(null); }; document.body.appendChild(s); } else { initESW('https://c2s--andrew.cs97.my.salesforce.com'); }</script>
Please help me in resolving the issue. 
I am facing a weird issue here, I have a flow embedded in the Aura component. The screen details are visible in Windows when I am seeing by logging the same user but the content (radio button and display text) is not visible on MAC. Are there any updates specific to MAC? 
I have included Iframe in VF page but it is not displaying.
Thing i have done :
1) Allowed All cookies
2) Unchecked - 'Enable clickjack protection for customer Visualforce pages with standard headers'
3) Added the URL in 'Whitelisted Domain for VF'
Still, it is not working.
Could anyone provide any solution for this.
Code snippet -
<apex:page showHeader="false" standardStylesheets="false" sidebar="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0" controller="testIframeController">
        <apex:iframe src="https://www.salesforce.com" id="theFrame" height="500px" width="1000px"/>
 
</apex:page>