Is there any way to know if a user is getting a phonecall? (Javascript)

Viewed 141

I'm working on a video call web application.

Every time the user is on a mobile device (iPhone or Android) and gets a phone call, the video call sound gets damage.

I've tried the tabfocus event but not every smartphone "unfocus" during a phone call. Some of them just show a pop up, for example.

document.visibilityState didn't work either.

I'm searching for a way to know about or fully block the phone call.

Thanks for the help!

1 Answers
Related