Detecting an Incoming Call Using a Phone Conversation

I want to capture an incoming call event using Phonegap. I want to determine if an incoming call event has occurred and media files are paused. So far I have learned about the startcallbutton and * endcallbutton * events . But I want to detect a call from the moment of the call. Searching the google phonegap group but not finding a solution that might work for me.

I am new to the phone. Am I missing something? Can someone help me on how I can detect an incoming call and take action after that? Is this solution device independent?

+4
source share
2 answers

Perhaps this plugin solves this for you? https://github.com/renanoliveira/cordova-phone-call-trap

Please note that you will always need a plugin, since Phonegap / Cordova does not have an API to detect calls. And the plugins are platform specific, but since you have noted your Android question, I suppose you focus only on Android?

+3
source

as I, as I could remember, you need to configure an intent filter to trigger an event and get an action from this event ... and process it.

reading the following material will help you understand ~

Get phone number of incoming call in Android

http://developer.android.com/reference/android/telephony/TelephonyManager.html#ACTION_RESPOND_VIA_MESSAGE

Android?

0

All Articles