{"__v":8,"_id":"55ae0e64f302af23000ac07b","category":{"__v":2,"_id":"5540e5febb9e762d00f594d3","pages":["55ae0e64f302af23000ac07b","55ae10e38576b92300291c64"],"project":"5540ce1b31827a0d007ab1cc","version":"5540ce1c31827a0d007ab1cf","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-04-29T14:09:02.921Z","from_sync":false,"order":5,"slug":"blackberry-5-7","title":"BlackBerry 5-7"},"parentDoc":null,"project":"5540ce1b31827a0d007ab1cc","user":"55a79a4d4a33f92b00b7a111","version":{"__v":31,"_id":"5540ce1c31827a0d007ab1cf","project":"5540ce1b31827a0d007ab1cc","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"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-07-21T09:18:28.365Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"[**Download SDK**](https://github.com/Pushwoosh/pushwoosh-blackberry-sdk/tree/master/BlackBerry5-7-Java)\n[**Sample Project**](https://github.com/Pushwoosh/pushwoosh-blackberry-sdk/tree/master/Samples/BlackBerry)\n\nTo integrate Pushwoosh Push Notifications SDK into your BlackBerry application you need to do simple following steps:\n\n**1.** Register for Blackberry Push Notifications here: https://www.blackberry.com/profile/?eventId=8121\n[block:callout]\n{\n  \"type\": \"info\",\n  \"body\": \"For evaluation server in your client app enter: `http://pushapi.eval.blackberry.com` as a serverUrl (no slash at the end!)\\nIn Pushwoosh app configuration enter: `https://pushapi.eval.blackberry.com`\"\n}\n[/block]\n**2.** Inherit your application from PushUIApplication\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"public class SampleUIApplication extends PushUIApplication\",\n      \"language\": \"java\"\n    }\n  ]\n}\n[/block]\n**3.** Pass the following parameters to the superclass constructor:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"protected SampleUIApplication()\\n{\\n    super(Keys.BLACKBERRY_PUSH_APPLICATION_ID, Keys.BLACKBERRY_PUSH_URL,\\n            Keys.BLACKBERRY_PUSH_PORT, Keys.PUSH_WOOSH_APPLICATION_ID, \\\"widdle_icon.png\\\", \\\"uiicon.png\\\", \\\"uaiconAlert.png\\\",\\n            \\\"/cash.mp3\\\");\\n}\",\n      \"language\": \"java\"\n    }\n  ]\n}\n[/block]\n* Keys.BLACKBERRY_PUSH_APPLICATION_ID – BlackBerry Application ID\n* Keys.BLACKBERRY_PUSH_URL – Blackberry Push Notification URL you have received after registration\n* Keys.BLACKBERRY_PUSH_PORT – Blackberry Push Notification Port you have received after registration\n* Keys.PUSH_WOOSH_APPLICATION_ID – Pushwoosh Application ID\n* “widdle_icon.png” – Indicator image (24×24 px). Appears as the push indicator when the push notification have been received\n* “uaicon.png” – Normal application icon (displays when the push notification have been read (57×57 px)\n* “uaiconAlert.png” – Application icon to display when when the push notification have been received (57×57 px)\n* “/cash.mp3″ – sound to play when the push notification have been received\n\n**4.** Implement the following function:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"protected void handleNotification(final String notification)\\n{\\n    Runnable r = new Runnable()\\n    {\\n        public void run()\\n        {\\n            BBPushDialog uad = new BBPushDialog(notification);\\n            try\\n            {\\n                pushModalScreen(uad);\\n            } catch (IllegalStateException e)\\n            {\\n                // pass\\n            }\\n        }\\n    };\\n    invokeLater(r);\\n}\",\n      \"language\": \"java\"\n    }\n  ]\n}\n[/block]\nThat’s it! Easy, isn’t it?\n[block:callout]\n{\n  \"type\": \"info\",\n  \"body\": \"SDK comes with the full source and a Sample Blackberry push notifications app. See SDK for more details. \\nNOTE: Simulator (Ripple) is not able neither to subscribe nor receive Blackberry push notifications.\"\n}\n[/block]","excerpt":"Native BlackBerry 5-7 integration Guide","slug":"native-blackberry-5-7-integration-guide","type":"basic","title":"Native BlackBerry SDK"}

Native BlackBerry SDK

Native BlackBerry 5-7 integration Guide

[**Download SDK**](https://github.com/Pushwoosh/pushwoosh-blackberry-sdk/tree/master/BlackBerry5-7-Java) [**Sample Project**](https://github.com/Pushwoosh/pushwoosh-blackberry-sdk/tree/master/Samples/BlackBerry) To integrate Pushwoosh Push Notifications SDK into your BlackBerry application you need to do simple following steps: **1.** Register for Blackberry Push Notifications here: https://www.blackberry.com/profile/?eventId=8121 [block:callout] { "type": "info", "body": "For evaluation server in your client app enter: `http://pushapi.eval.blackberry.com` as a serverUrl (no slash at the end!)\nIn Pushwoosh app configuration enter: `https://pushapi.eval.blackberry.com`" } [/block] **2.** Inherit your application from PushUIApplication [block:code] { "codes": [ { "code": "public class SampleUIApplication extends PushUIApplication", "language": "java" } ] } [/block] **3.** Pass the following parameters to the superclass constructor: [block:code] { "codes": [ { "code": "protected SampleUIApplication()\n{\n super(Keys.BLACKBERRY_PUSH_APPLICATION_ID, Keys.BLACKBERRY_PUSH_URL,\n Keys.BLACKBERRY_PUSH_PORT, Keys.PUSH_WOOSH_APPLICATION_ID, \"widdle_icon.png\", \"uiicon.png\", \"uaiconAlert.png\",\n \"/cash.mp3\");\n}", "language": "java" } ] } [/block] * Keys.BLACKBERRY_PUSH_APPLICATION_ID – BlackBerry Application ID * Keys.BLACKBERRY_PUSH_URL – Blackberry Push Notification URL you have received after registration * Keys.BLACKBERRY_PUSH_PORT – Blackberry Push Notification Port you have received after registration * Keys.PUSH_WOOSH_APPLICATION_ID – Pushwoosh Application ID * “widdle_icon.png” – Indicator image (24×24 px). Appears as the push indicator when the push notification have been received * “uaicon.png” – Normal application icon (displays when the push notification have been read (57×57 px) * “uaiconAlert.png” – Application icon to display when when the push notification have been received (57×57 px) * “/cash.mp3″ – sound to play when the push notification have been received **4.** Implement the following function: [block:code] { "codes": [ { "code": "protected void handleNotification(final String notification)\n{\n Runnable r = new Runnable()\n {\n public void run()\n {\n BBPushDialog uad = new BBPushDialog(notification);\n try\n {\n pushModalScreen(uad);\n } catch (IllegalStateException e)\n {\n // pass\n }\n }\n };\n invokeLater(r);\n}", "language": "java" } ] } [/block] That’s it! Easy, isn’t it? [block:callout] { "type": "info", "body": "SDK comes with the full source and a Sample Blackberry push notifications app. See SDK for more details. \nNOTE: Simulator (Ripple) is not able neither to subscribe nor receive Blackberry push notifications." } [/block]