Sinch Video Calling ios app using ionic framework - javascript

I'm trying to build a video calling app using sinch and ionic framework. The video call works fineon my localhost browser, but when I deploy the app to my iphone it throwing an error 'Error: SinchClient can't be started with calling capability. Browser not supported.' I'm new to Sinch. Please help

The reason its not working is that WebView/Safari does not have WebRTC to make it work in ionic you need to use the Native libraries and build a JS bridge, if I remember correct ionic is a ui framwork on top of cordova so its a cordova plugin that needs to be built.

Related

Embedding a Vue.js app inside an Android WebView

I have an android app launching a Webview. I have some sample code in Vue.js that I want to integrate and run in that Webview. I tried to find a way to do so without modifying the vue.js sample, with no luck.
I found code to communicate info between the javascript running in the WebView and the android app, but I got lost adding Vue.js to the equation instead of plain javascript.

how to implement affectiva sdk in cordova

I am developing a Cordova(Phonegap) hybrid project for Android and IOS platforms using jquery mobile framework I have tried using javascript version of affectiva but it does not detect camera(I have also installed cordova camera plugin) and i get the call back message camera denied. Any suggestion on how to enable affdex.CameraDetector to recognize device camera? Thanks
Currently the Javascript version of Affectiva's SDK does not work on mobile devices. This should change with a future release.

cordova - call javascript from android background service cordova plugin

Currently, I am developing an Ionic2 app that should have an ability to connect automatically to paired bluetooth devices in range while beeing closed/killed in order to collect specific data.
Using this plugin https://github.com/Red-Folder/bgs-core, I am creating a background service for android.
Since most of the main app logic written in JS, I would like to know whether it is possible to call functionality written in JavaScript from cordova plugin (in case of Android from Java) while the application is closed. If yes, how can I do it?
As an alternative, are there other cordova plugins that support background execution while an app is killed?
I have found similar questions, however, none of them contains a sufficient solution:
run javascript in background service on android phonegap
How to run cordova plugin in Android background service?

How To Interface Android/iOS App With Cordova Hybrid Application

I need some help in order to interface a native Android/iOS app with my Cordova Hybrid Application and send messages from each to other.
Can I use in total freedom cordova.exec command to send messages to the native application?
Must I create a plugin to embed it?
May you suggest me an example that fits with Cordova 5.0 version?
How can I wrap cordova.exec into an Angular service?
Cordova exec is not a function to execute anything on your device.
It's a function to call native code from the javascript but the function you call has to be either from the cordova framework, or from a plugin.
If you want to communicate between apps, you will have to either make your plugin using native code or maybe you can find a plugin already doing it.
For android you can communicate between apps using intents, for ios I have no idea.
You can have a look at the app launcher plugin, it covers the launching an app from an other app part.
For the passing parameters and receiving result part, on android it's easy, you just have to add parameters to the intent.
For IOS, you can read this document.

Node.js app into an iOS app?

I have a Node.Js app running on a publicly accessible server.
I want to make it possible for users to access it as a native iOS app.
Is there a simple way of simply making an iOS app and having it show my Node.Js app running from the server? Or it's more complicated than that?
I looked into PhoneGap but maybe some other recommendations also?
Thanks!
PS I know the question is broad but that's why I'm asking – to focus my question and to know what to do next.
Node.js - this is a server side application. So you need to build client application which can communicate with your node.js server by Rest api or so...
As you mentioned you can build hybrid html5/js app with PhoneGap, Cordova, Ionic "wrappers/libraries" which will pack it into native iOS/Android/... application and that app can talk to your node.js server and transfer data you need.
Also, as Daniel Larsson mentioned for some specific pages you can use webview to display page straight from the web, but webview can be a part of your application but not an entire application, because Apple will reject it during review process.
If you want to port your existing web-app over to being a native app on the app store, I can positively recommend PhoneGap having developed multiple apps with it after completing the same research you are doing now.
As NYS said, you'll need to package all your web-app design (HTML/CSS+images/JS) inside the PhoneGap app, any other way simply wouldn't be responsive enough.
As for what to do next, I would dive straight into creating a PhoneGap application and see how your app runs inside the Cordova wrapper out of the box. The issues I faced were with scrolling on divs holding content, and non-responsive click events, both were easily solved with javascript libraries.
Cheers Chris!
You may use Socket.io for native option.
http://socket.io/blog/socket-io-on-ios/
https://github.com/socketio/socket.io-client-swift/
https://github.com/pkyeck/socket.IO-objc/
https://github.com/square/SocketRocket/

Categories