简体   繁体   中英

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.

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.

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM