Pages

Friday, October 30, 2015

Deploy your webworks produced bar file to Blackberry Enterprise Server, then go to the bar


  1. Define your app id (e.g. config.xml... widget id="my.company.appname")
  2. Define your app version (e.g. config.xml ... version="1.0.0"...)
  3. Change the in-app version, automated via a hook, or manually
  4. Change the uri whitelist to e.g. <access uri="https://bladieblah.full.path.com/leading?to=wherever&use_a_wildcard=*" subdomains="true" />
  5. Build. e.g. webworks build --release -k <the password you used to do signing> -b 1
  6. Pray

Thursday, October 15, 2015

Install a bar file to your blackberry10 device in debug mode using node / webworks

How to install a bar file (e.g. blackberry application package) to your blackberry10 device:

I'm assuming you're using node and already did: npm -g install webworks, also you already have a blackberry id. To make this work you have to make a debug token (filename: bbidtoken.csk) request via the website.

To make this work you need two files: author.p12, bbidtoken.csk

Both should be copied to $HOME/.rim where webworks can find it by default on Linux;
~/Library/Research\ In\ Motion/
on a mac.
author.p12 can be generated using bbidtoken.csk with the following commands:
blackberry-keytool -genkeypair -storepass [The passphrase you used to request the debug token] -dname "CN=[Company name]"
blackberry-deploy -installDebugToken bbidtoken.csk -device [ipv4 address] --password [The passphrase to access the device internals]

Finally to install your app (assumingly made with cordova/webworks):
webworks --verbose run --devicepass [The passphrase to access the device internals] --keystorepass [The passphrase you used to request the debug token]