Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Making and monitoring phone call within phonegap

I'm considering building a PhoneGap app that would work with my web app via web socket. It would receive the instruction to dial a phone number, run in the background while the phone call is in progress, detect when the phone call picks up and when the call hangs up, and then resume so that the call information is sent back via ajax.

Can this be done in PhoneGap? Can this be approved for iOS?

Note: this is a feasibility question, not a give-me-code question.

like image 208
frenchie Avatar asked Oct 07 '16 15:10

frenchie


People also ask

What is monitor call code?

Dial *17 from your desk phone, desktop app, or mobile app. Enter the extension you would like to monitor. If you dialed the star code from someone else's phone that does not have monitoring permissions, enter your numerical dialable username given to you by a system admin.


2 Answers

For using any native functionality like location, call etc; developers have to create plugins. For iOS 10 and upcoming versions, apple has introduced callkit framework which allows you to programmatic access to VoIP functionality, as well as call blocking and identification. Prior to iOS 10, I have used twilio API which does the same things as mentioned in your question.

  • Yes, it is possible in phonegap using the custom plugins.
  • Yes, the application will be approved for iOS.
like image 114
pkc456 Avatar answered Sep 22 '22 22:09

pkc456


Can this be done in PhoneGap?

No, you'd have to develop a plugin for each platform.

Can this be approved for iOS?

All samples I found to similar problems use deprecated APIs, so probably not. I am not an ios developer, which is why I am not sure. More information here Detecting the call events in ios


I know that this is possible on Android, see How to detect incoming calls, in an Android device?


It is not possible on Windows phone, see Is there any way to monitor phone call info on Windows Phone 7?

like image 24
F43nd1r Avatar answered Sep 19 '22 22:09

F43nd1r