koler icon indicating copy to clipboard operation
koler copied to clipboard

[feature] webhook on various call events

Open beppe9000 opened this issue 5 years ago • 4 comments

I would like to get a notification on my pc when there is an incoming call and don't want to make yet another account for this.

The easiest way to implement that is to have the app make a web request (HTTPS POST) somewhere when a call is received. The user is then free to setup their end to handle it however they see fit (e.g. netcat + shell script).

Example of payload for an incoming call:

{eventName:"INCOMING_CALL",contactName:"John Doe", phoneNumber:"0123456789"}

I suggest to add two settings to this app:

  • A text field to specify the target url
  • A checkbox group to select what events are to be notified externally (e.g. incoming call, missed call, call ended)

ps. It would be interesting to see if the existing windows 10 facilities from the native android notification bridge could be hijacked for re-use with koler and without a microsoft account

beppe9000 avatar Dec 09 '19 17:12 beppe9000

It is seems like work for Tasker

jumper047 avatar Apr 16 '20 23:04 jumper047

yeah, but having it builtin web event logging api client is way cleaner it's like 4 rows of code vs installing a whole additional app

beppe9000 avatar Apr 17 '20 07:04 beppe9000

You should create a socket server and connect with the mobile application. Your socket server listens to events from mobile pp and notifies your web application This way you have 2-way communication and can control calls from your web application.

socket server------------------------->Mobile application /|\ | <------------------------ | | | | | |/ Web application

talusannni avatar Sep 22 '20 11:09 talusannni

Yes, my idea was something like that, to mimic AirDroid or PushBullet or Microsoft Android call alert.

and connect with the mobile application

is there an existing facility for this ?

beppe9000 avatar Sep 22 '20 13:09 beppe9000