| 230 | |
| 231 | |
| 232 | == Using PjsuaBB in Device-Release Target == |
| 233 | |
| 234 | In this section we will build PJSIP and PjsuaBB in '''Device-Release''' mode and ''sideloading'' it to the device. Sideload is a term for installing an app directly to the device without publishing it through ''Blackberry !AppWorld''. |
| 235 | |
| 236 | === Building Device-Release Target === |
| 237 | |
| 238 | For PJSIP, follow [#multicfg Multiple Settings] section above on how to build PJSIP in Device-Release build target. Or otherwise the easiest way is to re-run {{{./configure-bb10}}} with the appropriate CFLAGS and rebuild PJSIP. |
| 239 | |
| 240 | Then in Momentics IDE, select ''Device-Release'' as the active build configuration for PjsuaBB, and build the application. |
| 241 | |
| 242 | === Creating .bar Package === |
| 243 | |
| 244 | Follow the [https://developer.blackberry.com/native/documentation/bb10/com.qnx.doc.native_sdk.quickstart/topic/sign_and_publish_your_app.html Sign and publish your app tutorial] from Blackberry Native SDK site to create the '''.bar''' package. You don't need to publish your app now (unless you want to of course). |
| 245 | |
| 246 | === Installing (a.k.a Sideloading) to Device === |
| 247 | |
| 248 | As far as I know there are three ways to sideload an app to the device: |
| 249 | |
| 250 | 1. [http://m.crackberry.com/ddpb-installer-utility-blackberry-playbook-updated-v109 Using DDPB] to sideload apps to Blackberry PlayBook. I think this tool has been deprecated in favor of vnBB10 below. |
| 251 | 1. [http://m.crackberry.com/sideload-android-apps-your-blackberry-10-device-vnbb10 Using vnBB10] to sideload apps to BB10 and PlayBook. The tool works on both Mac and Windows (no Linux!) |
| 252 | 1. [http://m.crackberry.com/sideload-apps-your-blackberry-using-google-chrome Using a Chrome extension] to sideload apps to BB10 and PlayBook. This works on Linux as well as Mac and Windows. I only tested this. |
| 253 | |
| 254 | For general tutorial on sideloading apps to your BB10 device please see [http://m.crackberry.com/how-put-android-apps-your-blackberry-10-device this tutorial] (on Windows). |
| 255 | |
| 256 | === Troubleshooting Problems === |
| 257 | |
| 258 | I am by no means expert on sideloading, so please contact the relevant forum for help. But I may have one or more tips for troubleshooting problems: |
| 259 | |
| 260 | 1. Make sure your debug token is valid. In my experience, the Chrome extension was unable to connect to my device due to expired debug token. Remember that debug token expires every 30 days. It works fine after the debug token is renewed. The easiest way to renew debug token is from Momentics IDE: |
| 261 | - go to ''Preferences'' --> ''Blackberry'' --> ''Signing'' |
| 262 | - select the expired debug token, click ''Renew'', then ''Upload'' to upload to the device. |