{"_id":"55ae240f2723e51900898f96","version":{"_id":"5540ce1c31827a0d007ab1cf","project":"5540ce1b31827a0d007ab1cc","__v":31,"createdAt":"2015-04-29T12:27:08.390Z","releaseDate":"2015-04-29T12:27:08.390Z","categories":["5540ce1c31827a0d007ab1d0","5540d91bbb9e762d00f594ad","5540e5f131827a0d007ab212","5540e5febb9e762d00f594d3","5540e61331827a0d007ab213","5540e6195cf9682100d61afa","5540e62631827a0d007ab214","5540e63031827a0d007ab215","5540e63531827a0d007ab216","5540e63e5cf9682100d61afc","5540e6445cf9682100d61afd","5540e64a5cf9682100d61afe","55a4ff5b2e70c0250038050f","55acb28318eefd0d0071d504","55ae1abe8576b92300291c80","55ae453ef302af23000ac109","55af586d555b900d0036d296","55af91dac8a85321007a53c3","55b9fee204775a2f00628071","55b9ff0e04775a2f00628072","55b9ff4604775a2f00628073","55b9ff5fd72d1e1900276a38","55b9ff7f04775a2f00628074","55b9ff90eb08801900f833e5","55b9ffa5d72d1e1900276a39","55b9ffca04775a2f00628075","55b9fffdd72d1e1900276a3a","56bc2f033ee9e70d008b46af","56c2f6efbbf9ec2d00e0fe4f","57595bbb18760817001e8bbe","57d8d9793916800e003dde53"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"project":"5540ce1b31827a0d007ab1cc","parentDoc":null,"category":{"_id":"55ae1abe8576b92300291c80","project":"5540ce1b31827a0d007ab1cc","pages":["55ae1b43f302af23000ac0ab","55ae240f2723e51900898f96","55ae2c822723e51900898fa2","55ae2eda8576b92300291caf"],"version":"5540ce1c31827a0d007ab1cf","__v":4,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-07-21T10:11:10.515Z","from_sync":false,"order":6,"slug":"blackberry-10","title":"BlackBerry 10"},"user":"55a79a4d4a33f92b00b7a111","__v":6,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-07-21T10:50:55.724Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":1,"body":"Integrating Pushwoosh into your BlackBerry Android Runtime app is fast and easy:\n[block:callout]\n{\n  \"type\": \"info\",\n  \"body\": \"Before you begin you should already have an Android app integrated with Pushwoosh. If you don’t, follow the guides for [Native Android Java development](http://www.pushwoosh.com/programming-push-notification/android/native-android-sdk-integration/)\\nor any other [supported cross-platform development tool](http://www.pushwoosh.com/programming-push-notification/android/android-additional-platforms/)\"\n}\n[/block]\n**1.** Create a **.bar** app file from Android **.apk** using the official BlackBerry guide: https://developer.blackberry.com/android/documentation/bb_andrd_dvlpmnt_tools.html.\nDo not sign the .bar file yet!\n\n**2.** Register for BlackBerry Push Notifications here: https://www.blackberry.com/profile/?eventId=8121\n\n**3.** Rename the **.bar** file to **.zip** and unpack it.\n\n**4.** In the **android** folder add **android.cfg** with the following content:\n[block:callout]\n{\n  \"type\": \"info\",\n  \"body\": \"Replace YOUR_BLACKBERRY_APP_ID with BlackBerry App Id obtained in step 2.\"\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?> \\n<android> \\n   <push>\\n      <appid>YOUR_BLACKBERRY_APP_ID</appid> \\n      <ppgurl>http://pushapi.eval.blackberry.com</ppgurl> \\n      <tokenprefix>bb-</tokenprefix>\\n   </push>\\n</android>\",\n      \"language\": \"xml\"\n    }\n  ]\n}\n[/block]\nThis is what the final .bar file structure should look like:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"PushApp.bar/META-INFO/MANIFEST.MF\\nPushApp.bar/android/android.cfg \\nPushApp.bar/android/PushApp.apk\\nPushApp.bar/android/res/drawable-hdpi/ic_launcher.png\",\n      \"language\": \"java\"\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"body\": \"Usually, this happens automatically during the conversion process, but make sure your manifest file contains the following permission:\\nEntry-Point-System-Actions: _sys_use_consumer_push\"\n}\n[/block]\nThis is what the push will look like:\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/EKgmyR3ISXyx5k1kOX4c_PushwooshBB10-614x1024.png\",\n        \"PushwooshBB10-614x1024.png\",\n        \"614\",\n        \"1024\",\n        \"#1d3541\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"body\": \"Please note that custom icons are not yet supported for Android Runtime. http://supportforums.blackberry.com/t5/Android-Runtime-Development/Push-Notification-Hub-icon/td-p/2726417\"\n}\n[/block]","excerpt":"Android Runtime apps for BlackBerry 10","slug":"android-runtime","type":"basic","title":"Android Runtime"}

Android Runtime

Android Runtime apps for BlackBerry 10

Integrating Pushwoosh into your BlackBerry Android Runtime app is fast and easy: [block:callout] { "type": "info", "body": "Before you begin you should already have an Android app integrated with Pushwoosh. If you don’t, follow the guides for [Native Android Java development](http://www.pushwoosh.com/programming-push-notification/android/native-android-sdk-integration/)\nor any other [supported cross-platform development tool](http://www.pushwoosh.com/programming-push-notification/android/android-additional-platforms/)" } [/block] **1.** Create a **.bar** app file from Android **.apk** using the official BlackBerry guide: https://developer.blackberry.com/android/documentation/bb_andrd_dvlpmnt_tools.html. Do not sign the .bar file yet! **2.** Register for BlackBerry Push Notifications here: https://www.blackberry.com/profile/?eventId=8121 **3.** Rename the **.bar** file to **.zip** and unpack it. **4.** In the **android** folder add **android.cfg** with the following content: [block:callout] { "type": "info", "body": "Replace YOUR_BLACKBERRY_APP_ID with BlackBerry App Id obtained in step 2." } [/block] [block:code] { "codes": [ { "code": "<?xml version=\"1.0\" encoding=\"utf-8\"?> \n<android> \n <push>\n <appid>YOUR_BLACKBERRY_APP_ID</appid> \n <ppgurl>http://pushapi.eval.blackberry.com</ppgurl> \n <tokenprefix>bb-</tokenprefix>\n </push>\n</android>", "language": "xml" } ] } [/block] This is what the final .bar file structure should look like: [block:code] { "codes": [ { "code": "PushApp.bar/META-INFO/MANIFEST.MF\nPushApp.bar/android/android.cfg \nPushApp.bar/android/PushApp.apk\nPushApp.bar/android/res/drawable-hdpi/ic_launcher.png", "language": "java" } ] } [/block] [block:callout] { "type": "info", "body": "Usually, this happens automatically during the conversion process, but make sure your manifest file contains the following permission:\nEntry-Point-System-Actions: _sys_use_consumer_push" } [/block] This is what the push will look like: [block:image] { "images": [ { "image": [ "https://files.readme.io/EKgmyR3ISXyx5k1kOX4c_PushwooshBB10-614x1024.png", "PushwooshBB10-614x1024.png", "614", "1024", "#1d3541", "" ] } ] } [/block] [block:callout] { "type": "warning", "body": "Please note that custom icons are not yet supported for Android Runtime. http://supportforums.blackberry.com/t5/Android-Runtime-Development/Push-Notification-Hub-icon/td-p/2726417" } [/block]