jerrod-lankford / google-voice-desktop-app

An electron shell wrapper around the google voice website
246 stars 37 forks source link

[feature request] Handle click to call as default app via click to call in chrome/brave/firefox/etc #100

Open arooni opened 2 years ago

arooni commented 2 years ago

This app https://www.rubicode.com/Software/RCDefaultApp/ ;; is very useful in allowing phone numbers I click on to be routed to a different app (or to pick a different default app). I can select google-voice-desktop app for clickable numbers however, when I do so, it doesn't seem to dial the number automatically.

Also it doesn't seem to populate the number to dial.

Would love to see this feature added.

arooni commented 2 years ago

this is the way to do it apparently

window.navigator.registerProtocolHandler("tel", "https://voice.google.com/u/0/calls?a=nc,%s","phone");

run that command in chrome/brave's developer tools while you're already on voice.google.com

gt7599a commented 7 months ago

I get the following error when I try typing this in the Console window

Uncaught DOMException: Failed to execute    VM284:1 
'registerProtocolHandler' on 'Navigator': Can only register custom handler in the document's origin.
        at <anonymous>:1:18

Any suggestions on how to proceed?