How to determine the voice call function in the telephone gap

Can you tell if a device is capable of making phone calls through Phonegap? especially for Android and iOS devices.

My first thought was to determine if the app works on tablet or cell phone, but there are tables with phone voice call function though ...

thank

Igor

+3


source to share


1 answer


There is currently no way / plugin to do this with PhoneGap / Cordova. PhoneGap / Cordova gives you access to information about network devices. Please see this plugin https://github.com/apache/cordova-plugin-network-information/blob/master/doc/index.md , with that you could at least get what kind of connection the device has.

So, if there is no connection, you cannot make calls. Doesn't solve your problem, but might help.



Optional: Please note that you cannot make application calls using android, it must open its own calling application.

0


source







All Articles