Porting to other platforms
Now that the BlackBerry WebWorks SDK is built on Apache Cordova, it is easier than ever to bring your apps to multiple platforms. Using the Apache Cordova CLI, you can port your app to a number of platforms, including:
- Windows Phone 7 & 8
- Windows 8
- Firefox OS
Adding platforms to your project
To build your BlackBerry WebWorks app for other platforms, you need to download the SDKs for your targeted platform(s) and the Apache Cordova tools. Once the SDKs and Cordova tools are installed, you add other platforms to your project.
To add an additional platform, use the cordova platform add command. For a complete porting walkthrough, see the Apache Cordova documentation.
You can skip the Create the App step since you have already created your app using the BlackBerry WebWorks SDK.
Add compatible features
Plugins for the BlackBerry WebWorks SDK are not compatible with other operating systems. To achieve the same functionality across multiple platforms, you will need to find and add similar plugins for each platform you port to. For example, to enable payment services for Android you might add the Google Play In-App Billing plugin to achieve the same functionality as the Payment plugin for BlackBerry WebWorks.
Adding plugins for other platforms may require you to make some changes to your source code.
PhoneGap is an alternative tool for packaging and porting your app to multiple platforms. It is also based on Apache Cordova, so your source code will not need to be changed. PhoneGap can be used either as a set of command line tools or as a web service that packages and builds your app remotely. For a complete overview, see the PhoneGap documentation.
Last modified: 2014-10-09