We are using the Twilio call feature in our product and we currently are facing an issue with Calling. When an incoming call is ringing on the browser and lets say the web app is opened in multiple tabs and the user refreshes any of the tabs while ringing then it will disconnect the incoming call. Our Web APP is build in the .Net MVC Framework. Please guide us if there is a way to prevent the disconnection of Twilio Call.
I recommend you enable the closeProtection option when you instantiate your Device. That will enable a dialog prompt with the text:
A call is currently in progress. Leaving or reloading the page will end the call.
when closing a page with an active connection.
const device = new Device(token, {
closeProtection: true
});