Skip to main content
Answer

Chat icon is not showing

  • December 16, 2022
  • 1 reply
  • 87 views

Front Developer
Forum|alt.badge.img+2

We were showing front chat app icon on FE to communicate with our support team, everything was working fine from the past years, recently the icon is not showing anymore, We have initialised FCSP token and frontChat too. But we don't know how suddenly this stops working.

Is there any expiry date in token?


Or is there any change is script to integrate front chat?

<script src="https://chat-assets.frontapp.com/v1/chat.bundle.js"></script>
<script>
window.FCSP = 'xxx';
</script>

 

Best answer by Support Engineering

The second script seems to try directly setting the value of window.FCSP, rather than calling the init method documented here: 

 

https://dev.frontapp.com/docs/chat-sdk-reference#frontchatinit-options

 

Which would look like:

<script src="https://chat-assets.frontapp.com/v1/chat.bundle.js">
<script>

  window.FrontChat('init', {chatId: 'xxx', useDefaultLauncher: true});

</script>

 

1 reply

Forum|alt.badge.img+5

The second script seems to try directly setting the value of window.FCSP, rather than calling the init method documented here: 

 

https://dev.frontapp.com/docs/chat-sdk-reference#frontchatinit-options

 

Which would look like:

<script src="https://chat-assets.frontapp.com/v1/chat.bundle.js">
<script>

  window.FrontChat('init', {chatId: 'xxx', useDefaultLauncher: true});

</script>