{"__v":12,"_id":"55a8f945c8bd450d000dd128","category":{"project":"5540ce1b31827a0d007ab1cc","version":"5540ce1c31827a0d007ab1cf","_id":"55b9ff7f04775a2f00628074","pages":[],"__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-07-30T10:42:07.014Z","from_sync":false,"order":20,"slug":"appcelerator-titanium","title":"Appcelerator Titanium"},"parentDoc":null,"project":"5540ce1b31827a0d007ab1cc","user":"55a5003a750a9a23005332b6","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-17T12:47:01.064Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"[block:callout]\n{\n  \"type\": \"success\",\n  \"title\": \"Supports iOS, Android\"\n}\n[/block]\n[**Download Module**](https://github.com/Pushwoosh/pushwoosh-appcelerator-titanium/tree/master/Push-Notifications-Module)\n[**Download Sample**](https://github.com/Pushwoosh/pushwoosh-appcelerator-titanium/tree/master/Titanium-Sample-iOS-Android)\n[**SDK API Docs**](https://github.com/Pushwoosh/pushwoosh-appcelerator-titanium/tree/master/Documentation)\n\nTo integrate Pushwoosh into your Appcelerator Titanium application, follow these simple steps:\n\n**1.** Download the [Push Notifications Module](https://github.com/Pushwoosh/pushwoosh-appcelerator-titanium/tree/master/Push-Notifications-Module/) and put it in your **Modules** folder.\n\n**2.** Enable this module in **tiapp.xml** as per [Appcelerator guide](https://wiki.appcelerator.org/display/guides2/Using+Titanium+Modules).\n\n**3.** Initialize module and register for push notifications:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"var pushwoosh = require('com.pushwoosh.module');\\n\\npushwoosh.onPushOpened(function(e) {\\n  var message = e.message;\\n  // handle push notification open here\\n});\\n\\npushwoosh.initialize({ \\n    \\\"application\\\" : \\\"ENTER_PUSHWOOSH_APPID_HERE\\\",\\n    \\\"gcm_project\\\" : \\\"ENTER_GOOGLE_PROJECT_NUMBER_HERE\\\"\\n});\\n\\npushwoosh.registerForPushNotifications(\\n  function(e) {\\n        var pushToken = e.registrationId;\\n        // handle successful push registration here\\n    },\\n    function(e) {\\n        var errorMessage = e.error;\\n        // handle push registration error here\\n    }  \\n);\",\n      \"language\": \"javascript\"\n    }\n  ]\n}\n[/block]","excerpt":"How to integrate Pushwoosh SDK into your Titanium project","slug":"appcelerator-titanium","type":"basic","title":"Appcelerator Titanium"}

Appcelerator Titanium

How to integrate Pushwoosh SDK into your Titanium project

[block:callout] { "type": "success", "title": "Supports iOS, Android" } [/block] [**Download Module**](https://github.com/Pushwoosh/pushwoosh-appcelerator-titanium/tree/master/Push-Notifications-Module) [**Download Sample**](https://github.com/Pushwoosh/pushwoosh-appcelerator-titanium/tree/master/Titanium-Sample-iOS-Android) [**SDK API Docs**](https://github.com/Pushwoosh/pushwoosh-appcelerator-titanium/tree/master/Documentation) To integrate Pushwoosh into your Appcelerator Titanium application, follow these simple steps: **1.** Download the [Push Notifications Module](https://github.com/Pushwoosh/pushwoosh-appcelerator-titanium/tree/master/Push-Notifications-Module/) and put it in your **Modules** folder. **2.** Enable this module in **tiapp.xml** as per [Appcelerator guide](https://wiki.appcelerator.org/display/guides2/Using+Titanium+Modules). **3.** Initialize module and register for push notifications: [block:code] { "codes": [ { "code": "var pushwoosh = require('com.pushwoosh.module');\n\npushwoosh.onPushOpened(function(e) {\n var message = e.message;\n // handle push notification open here\n});\n\npushwoosh.initialize({ \n \"application\" : \"ENTER_PUSHWOOSH_APPID_HERE\",\n \"gcm_project\" : \"ENTER_GOOGLE_PROJECT_NUMBER_HERE\"\n});\n\npushwoosh.registerForPushNotifications(\n function(e) {\n var pushToken = e.registrationId;\n // handle successful push registration here\n },\n function(e) {\n var errorMessage = e.error;\n // handle push registration error here\n } \n);", "language": "javascript" } ] } [/block]