Port Your PhoneGap/Sencha Touch App to BlackBerry 10 in a Few Steps

WEB DEVELOPMENT / 03.05.14 / naveenm1

Sencha PhoneGap

In this post I wanted to go over how easy it is to package your existing Sencha Touch applications using PhoneGap and bring it to the BlackBerry 10 platform. Since the release of Sencha Touch 2.3 and Phone Gap 2.9, creating your cross platform applications (including BlackBerry 10, iOS and Android) has never been easier. Here is the quick review of the process.

1. Install the BlackBerry SDK ( WebWorks or Native)

You can either use the WebWorks SDK or the Native SDK with PhoneGap 2.9 in order to build your apps for the BlackBerry 10 platform. For more info about your SDK the choicees, refer to the PhoneGap documentation.

2. Register for code signing keys

For a step-by-step guide on how to register and install code signing keys, visit our HTML5 WebWorks page.

3. Install the BlackBerry 10 Simulator (optional)

If you don’t have a BlackBerry 10 device, you can still test your application on a BlackBerry 10 Simulator, which closely resembles a real BlackBerry 10 device. Here is the step-by-step guide to test your application on a BlackBerry 10 simulator.

You are only few minutes away from deploying your Sencha/PhoneGap application on to a BlackBerry 10 platform; the remaining steps are outlined below.

4. You need to add a target, which can be a BlackBerry 10 device or simulator.

<path to project>/cordova/target add <name> <ip> <device | simulator> [-p | --password <password>] [--pin <devicepin>]

5. Now you can build the project. A project can be built in debug or release mode. For more information, refer to the PhoneGap documentation

<path to project>/cordova/build

6. Finally, you can deploy the project to a target.

<path to project>/cordova/run <target>

Now, your application should be running on the BlackBerry 10 device or the simulator. For a great example of one of many apps that we have in the BlackBerry World that leverages Sencha Touch and Phone Gap, check out PC Plus.

Let me know if you have any comments or questions in the comments section below or send me a tweet at @Naveenan5.  I will be happy to respond to you and even happier to see your apps in the BlackBerry World!

About naveenm1