Create BlackBerry ID token
here: https://www.blackberry.com/SignedKeys/
If you will develop an app on BlackBerry OS 10 or some new plateform, choose the first checkbox, and you will be requested your BlackBerry ID username and password, other choices I haven’t tried. Then fill a storepass for the key, you can download a file like bbidtoken.csk
, save this file to ~/Library/Research In Motion
, if you are on Windows or Linux, save this file to where website mentioned.
Create developer certificate file
developer certificate file is a file named author.p12
I have installed a WebWorks SDK, so I can access blackberry tools on /Applications/BB10 WebWorks SDK 2.1.0.13/cordova-blackberry/bin/dependencies/bb-tools/bin
, you should change this path as your SDK type, the target file is blackberry-keytool
.
blackberry-keytool -genkeypair -storepass <keystore_pw> -author <YOUR_NAME>
This will create the author.p12 file on the same directory described below:~/Library/Research In Mothion
Create debug token
blackberry-debugtokenrequest -storepass <KeystorePassword> -devicepin <YOUR_DEVICE_PIN> ~/Library/Research In Motion/debug_token.bar
This will create debug token bar file on ~/Library/Research In Motion
, caution: debug token file must be a *.bar file.
Install debug token on your device
Enable your development mode on your device first (Settings > Security and Privacy > Development Mode)
blackberry-deploy -installDebugToken <path to debug token> -device <DEVICE_IP_ADDRESS> -password <DEVICE_PIN>
Your should get output like these:
1 2 3 4 |
|
Then your device development info has changed, “Debug Token Installed”
deploy an hello world to your device
I use WebWorks SDK, so I launched this app on Mac, and fill some info about project on localhost:3123
, a web management for development. After created the app, choose “Build” on left hand, fill your device password and keystore password, choose BUILD & INSTALL, you may get output like these:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
Meanwhile, your app will be opened on your device!