Demo for Bit6 Cordova Plugin. Users can make voice/video calls and send messages.
- Get the API Key at Bit6 Dashboard.
Clone this repo.
$ git clone git://github.com/bit6/bit6-cordova-demo.git
-
Edit config.xml to set your app id (iOS APNs requires unique bundle id).
-
Specify your Bit6 API Key in www/js/index.js
{'apikey': 'yourApiKey'}
- Add Bit6 Plugin
$ cordova plugin add https://github.com/bit6/bit6-cordova
-
For voice/video call support add iosrtc for iOS and Crosswalk Webview plugin for Android < 5. See this section
-
Add the platforms you want to support
$ cordova platform add ios
$ cordova platform add android
$ cordova platform add browser
-
Configure push notification support.
-
Fix WebView overlap on iOS (optional)
# Add StatusBar plugin
$ cordova plugin add https://github.com/apache/cordova-plugin-statusbar
# Run on iOS device
$ cordova run ios --device
# Run on Android device
$ cordova run android --device
# Run in a browser
$ cordova run browser