Browser-Phone
Browser-Phone copied to clipboard
notification when the call arrives
Is it possible to pop up the browser(open) when the call arrives like in whatsapp?
It will depend on the platform.
On iOS, you can only really use CallKit, but this has a major limitation in that the microphone is disabled while the callkit screen is active.
On Android, there are little to no limitations, and the microphone is able to be activated, but it’s largely up to you to build the call UI.
On a windows PC, there have traditionally been no options, but recently there are new developments like Push in Chrome. There are two options; you can use Manifest v2 extension, and use a background worker with a permanent websocket connection to your server. This can trigger the pop up, and show the phone. Manifest v3 (the soon to be only option) now only uses service workers, and can only be active for a short time, making the websocket method not an option. In this case you need to use Push… but the problem here is that documentation on this technique is extremely limited!!!
As I find more information on this I’ll share it. The potential is quite nice because you don’t even need Chrome to be open, and the call notifications will come in, and open the phone, allowing you to answer the call in a timely manner. (The only part you may need to configure is the link between client and server, and sending the correct push to the correct user.)
Is there a way in kiosk mode with multiple tabs to automatically switch to the phone tab when a call comes in?
Is there a way in kiosk mode with multiple tabs to automatically switch to the phone tab when a call comes in?
I believe this is possible with an extension of sorts.
chrome.tabs.query({
url : appURL
}).then(function(result){
if(result.length == 0){
// The phone is not open, so open it.
chrome.tabs.create({
url: appURL
});
}
else if(result.length >= 1){
// Show the Phone Tab
chrome.tabs.update(result[0].id, { active: true }); // active: true - brings the tab to the front
}
});