I'm developing an app using the calling SDK, but am having some issues with unwanted confirmation dialogs poping up while navigating HubSpot while using the app.
I've narrowed the cause down to this sequence of steps:
- The app is opened
- The app calls the SDK's incomingCall() method
- The app is minimized
- The user attempts to close/redirect/reload the tab
Not minimizing the app or using the SDK's callEnded method prevents the popup.
What can I do to prevent the popup from happening? I don't add any onbeforeunload event listeners in my app so I'm guessing it's done by HubSpot, what are its conditions for triggering exactly?