Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VOIP Using Phonegap

Is there's anyway I can implement VOIP Client using Ionic Framework ? Theres a SDK for the VOIP but regarding the connection and everything, is it possible or should I go native ?

Thanks

like image 203
Peril Avatar asked Jan 29 '15 12:01

Peril


2 Answers

You have three options:

  1. use existing native SDKs and connect them to your phonegap application
  2. go completely native
  3. use WebRTC

Option 3 is not recommended(I agree with points @Ricconnect made in his answer).

If you choose option 1 or 2, you can use existing libraries, e. g. Twilio mobile client. And you can then connect the native library to your app(option 1) with phonegap plugin(or you create your own connector).

My recommendation would be option 1 and I would also suggest you also read this post(written by the Author of before mentioned plugin).

like image 100
atastrumf Avatar answered Nov 17 '22 17:11

atastrumf


It is possible to use VOIP SDK's in Javascript. These SDK's rely on WebRTC to work, and this is not always available in older Android versions for example. These frameworks are however stable enough to work in a browser on your desktop.

You have several complications with Cordova instead of native. In Javascript you have a lot less control on connection and the OS in general. For example: when you are using VOIP and the phone goes on standby, you will lose connection because on iOS cannot run on the background with Cordova. Android has some ways of running in the background but you will have to experiment if this works when you are using VOIP.

In short: You will never get an as stable version of VOIP in Cordova as you could get native because the support in the browser still lacks support. If you want the best user experience for VOIP you will have to use native components (for now).

As alternative, you have a Cordova plugin phono that will let you make VOIP calls from your Cordova app. This is a plugin that I found searching on the internet and haven't tried it myself. There may be other Cordova plugins that work better.

like image 35
Ricconnect Avatar answered Nov 17 '22 17:11

Ricconnect