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.
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.