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.
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.
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.
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?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With