Is there a way to initiate a phone call within an application using PhoneGap?
I know it's possible to use tel:
hyperlinks to invoke the dialer, but this means that the application is paused. I'm trying to get this to work from within the application.
Any ideas?
You can use the CallNumber cordova plugin (call-number
on npm) to make the actual call.
To keep running in the background (when your app is paused due the dialer taking over), there is cordova-plugin-background-mode. As your app will keep running, you can use the success callback passed to the CallNumber API to do stuff when the phone-call has succeeded.
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