-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] page takes 30 seconds to trigger status callback in backend #210
Comments
Thanks for submitting @electrovir . Just to confirm, this is happening on 2.x only and not on 1.x correct? |
I browsed Device Options and found nothing that looked relevant. My only next idea is to add our own |
That is correct @charliesantos. Swapping back to version 1.x fixes this. |
@electrovir another quick question, are you passing any |
I've tried setting it to |
Adding the following code in our window.onbeforeunload = event => {
twilioCall.reject();
return false;
}; However, that means we can't add an actual "are you sure you want to navigate away" pop-up from |
Hi @electrovir we are able to reproduce it and for some reason, the incoming calls are not properly getting tracked inside our unload handler. I'll submit an internal ticket to address this. As a workaround, I think you need to also subscribe to window.onunload. Basically:
|
True, though I've always avoided relying on that event because:
(from the MDN docs) Though, if that's what 1.x used (an |
Correct, it's what both 1.x and 2.x uses. Watch out for a future release that contains the fix. And don't forget to remove your workaround after upgrading 😄 |
Will do, thank you! |
Some interesting results from my workaround experiments:
tl;dr using the (Tested on both Safari and Chrome.) |
Let's track this issue here #118 |
Hey everyone, are you all passing any value to maxCallSignalingTimeoutMs |
fixed in 2.10.2 |
or sensitive account information (API keys, credentials, etc.) when reporting this issue.
Code to reproduce the issue
N/A
Expected behavior
(This is the behavior from version 1 of the Twilio client)
Actual behavior
Step 4 in the above expected behavior now takes 30 seconds (almost exactly) every time those steps are followed.
Is there a config we're missing somewhere with our Twilio upgrade to fire status callbacks more quickly?
Software versions
@twilio/voice-sdk
: 2.8.0The text was updated successfully, but these errors were encountered: