Skip to content

Instantly share code, notes, and snippets.

@boodle
Last active October 29, 2015 10:53
Show Gist options
  • Save boodle/c3a508186c5ac8440683 to your computer and use it in GitHub Desktop.
Save boodle/c3a508186c5ac8440683 to your computer and use it in GitHub Desktop.
Creating & managing PhoneGap apps - per platform notes

Blackberry OS 7

Compile

  • Navigate to the project directory: cd \PhoneGap\com.serco.saynotoolkit
  • Compile with ant blackberry build

Deploy to a device

  • BB7 supports OTA installation, so copy the files from C:\PhoneGap\com.serco.saynotoolkit\build\OTAInstall to somewhere web accessible
  • Navigate to the .jad file in the browser on the device http://mydomain.com/install/SayNoToolkit.jad

Blackberry OS 10

Create a new project:

  • cordova create net.saynotoolkit.net.bb10 net.saynotoolkit.net.bb10
  • cd net.saynotoolkit.net.bb10
  • cordova platform add blackberry10
  • cordova build

Configure for signing

  • Sign up for keys, download them, and save where suggested for your OS
  • Setup signing: blackberry-keytool -genkeypair -storepass <keystore password> -author "Total Onion"

Depoly to Emulator

  • Add an emulator to the project platforms\blackberry10\cordova\target.bat add emu 169.254.0.1 -t simulator
  • Deploy to emulator cordova emulate blackberry10

Deploy to a device

  • On the device go to settings
  • Navigate to the Security and Privacy → Development Mode section and enable the option
  • Set a password, and note the IP given
  • Navigate to Settings → About → Hardware, and make a note of the PIN
  • Run the target to add it to your setup: platforms\blackberry10\cordova\target.bat add mydevice 169.254.0.1 -t device --password 123456 --pin FFFF972E

Deploy an existing bar file to a device

  • Install the App Manager Chrome Extension
  • Open it, and put in the IP address following the instructions on the page
  • Click to manage that device
  • Select the .bar file and click to install & launch

Create a release build

  • cordova build --release --keystorepass=

Windows Phone 8 / 8.1

Deploy Windows Phone to a testing device:

  • Start Visual Studio 2013
  • Tools -> Windows Phone 8.1 -> Application Deployment
  • Make sure the phone is connected via USB and unlocked
  • Select "Device" in the "Target"
  • Select the xap file and select deploy

Signing for enterprise:

To deploy for enterprise the app must be signed with the clients pfx certificate:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment