Guides

This guide is out of date.

As of L, Android now supports WebRTC in their standard WebView. We recommend building a hybrid HTML5 mobile app, rather than using Cordova or Crosswalk.

Android Native Apps

SIP.js web apps can be ported to Android using Crosswalk, which provides a WebRTC-capable WebView to display the web app without the conventional browser interface surrounding it. This guide will show you how to use Crosswalk to generate an Android app for the SIP.js Demo Phone on Mac OS X. Linux and Windows users should be able to follow along, as well.

System Setup

Project Configuration

1
2
3
4
cd sipjs-examples/demo-phone
curl -o icon.png https://raw.githubusercontent.com/onsip/sipjs-examples/crosswalk/demo-phone/icon.png
curl -o manifest.json https://raw.githubusercontent.com/onsip/sipjs-examples/crosswalk/demo-phone/manifest.json
# (or just `git checkout crosswalk`)

Native App Generation

Follow these steps from the Crosswalk docs, substituting the project’s paths/filenames in as needed: