Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
900 views
in Technique[技术] by (71.8m points)

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.8k users

...