flowfuse icon indicating copy to clipboard operation
flowfuse copied to clipboard

HS Chat Bubble Not Updating on URL Change

Open Yndira-E opened this issue 1 year ago • 1 comments

Description

We have more than one HS chat bubble to be displayed according to the URL. The chat bubble in our app does not update correctly when navigating between pages. It requires a page refresh to display the correct chat bubble, unlike the website where it works as expected.

Details:

  • Platform: Website and App
    • Chat Flow Types:
      • Generic Chat: Available on most pages (works as expected)

        • App chat:
          • Screenshot 2024-07-22 at 14 46 07
      • Specific Chat:

        • Website: Only on docs pages (works as expected)
        • App: Only on the billing setup page app.flowfuse.com/team/*/settings/change-type and should pop up after a second.
          • Screenshot 2024-07-22 at 14 47 05

Issue in App:

  • The specific chat bubble for the billing setup page only appears correctly after a page refresh.
  • When navigating to a different page, the chat bubble remains the same until the page is refreshed again.
  • Tried using both the wildcard option and the contains option, but the issue persists.

Expected Behavior:

The chat bubble should update automatically based on the URL changes without requiring a page refresh, similar to the behavior on the website.

Steps to Reproduce:

  • Navigate to the billing setup page in the app app.flowfuse.com/team/*/settings/change-type.
  • Observe the chat bubble appearing correctly.
  • Navigate to a different page within the app.
  • Notice that the chat bubble does not update.
  • Refresh the page to see the correct chat bubble.

Epic/Story

No response

Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

Yndira-E avatar Jul 22 '24 12:07 Yndira-E

On the website, navigating between pages triggers a full reload, so the chat bubble can updated as needed.

In the app, the page never reloads, so the chat bubble doesn't know what has happened.

We need to see what API's the HS chat widget provides so we can manually notify it of navigations around the app. Not sure what that will do if the user has an active chat on the go however.

knolleary avatar Jul 22 '24 13:07 knolleary