Skip to content

bit6/bit6-cordova-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bit6 Cordova Demo App

Demo for Bit6 Cordova Plugin. Users can make voice/video calls and send messages.

Prerequisites

Installation

Clone this repo.

$ git clone git://github.com/bit6/bit6-cordova-demo.git

Configuration

  1. Edit config.xml to set your app id (iOS APNs requires unique bundle id).

  2. Specify your Bit6 API Key in www/js/index.js

{'apikey': 'yourApiKey'}
  1. Add Bit6 Plugin
$ cordova plugin add https://github.com/bit6/bit6-cordova
  1. For voice/video call support add iosrtc for iOS and Crosswalk Webview plugin for Android < 5. See this section

  2. Add the platforms you want to support

$ cordova platform add ios
$ cordova platform add android
$ cordova platform add browser
  1. Set iOS signing configuration

  2. Configure push notification support.

  3. Fix WebView overlap on iOS (optional)

# Add StatusBar plugin
$ cordova plugin add https://github.com/apache/cordova-plugin-statusbar

Running the app

# Run on iOS device
$ cordova run ios --device
# Run on Android device
$ cordova run android --device
# Run in a browser
$ cordova run browser