{"_id":"5b720760c44b7600034b79b3","category":{"_id":"5b720760c44b7600034b79a8","__v":35,"pages":["5b720760c44b7600034b79b1","5b720760c44b7600034b79b3","5b720760c44b7600034b79b4","5b720760c44b7600034b79b5","55e682b7de6fef23009480dc","5b720760c44b7600034b79b6","5b720760c44b7600034b79b7","5b720760c44b7600034b79b8","5b720760c44b7600034b79b9","5b720760c44b7600034b79ba","5b720760c44b7600034b79bb","5b720760c44b7600034b79bc","5b720760c44b7600034b79bd","5b720760c44b7600034b79d1","5b720760c44b7600034b79d2","5b720760c44b7600034b79d3","5b720760c44b7600034b79d4","5b720760c44b7600034b79d5","5b720760c44b7600034b79d8","5b720760c44b7600034b79d9","5b720760c44b7600034b79db","561c6ca0be5fb20d00077754","5b720760c44b7600034b79e0","5b720760c44b7600034b79e1","5b720760c44b7600034b79e2","5b720760c44b7600034b79e3","5b720760c44b7600034b79e4","5b720760c44b7600034b79e5","5b720760c44b7600034b79e6","56cfa5386c5d7a13005eec0f","56e73d86555c030e00a52a73","56e7460c9000b120000ffe2e","56e8c19e99c6400e003820cf","56e8c53fc88bf80e00f8bed8","56f06ff4d386ce0e008e9b21"],"project":"55e67aaa9cc7c62b00c4a1ea","version":"5b720760c44b7600034b7a08","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-09-02T04:30:13.305Z","from_sync":false,"order":1,"slug":"install-in-your-app","title":"Install in your app"},"parentDoc":null,"version":{"_id":"5b720760c44b7600034b7a08","project":"55e67aaa9cc7c62b00c4a1ea","__v":0,"forked_from":"5b1f2cbdfd653400031d8d9f","createdAt":"2015-09-02T04:27:23.612Z","releaseDate":"2015-09-02T04:27:23.612Z","categories":["5b720760c44b7600034b79a7","5b720760c44b7600034b79a8","5b720760c44b7600034b79a9","5b720760c44b7600034b79aa","5b720760c44b7600034b79ab","561c61b4ad272c0d00a892df","586c014c0abf1d0f000d04d4","58991d2ad207df0f0002186b","5b720760c44b7600034b79ac","5b720760c44b7600034b79ad","5af0fe494ca2730003cbc98a","5af0fe55ec80af0003804ca2"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"API V6","version_clean":"1.4.0","version":"1.4"},"githubsync":"","project":"55e67aaa9cc7c62b00c4a1ea","user":"55d2bd8e2463351700f67dd7","__v":10,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-09-02T04:33:44.529Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","apiSetting":null,"auth":"required","params":[],"url":""},"isReference":false,"order":1,"body":"In addition to [In-app Messaging](doc:setting-up-in-app-messaging), Sailthru Mobile supports push Notifications via the Apple Push Notification Service (APNS) for iOS and Google Cloud Messaging (GCM) for Android. \n\nPush Notifications are a great way of communicating with your users when they are not using your app, and can be triggered when you publish Messages.  \n\n### Pick a platform to begin integrating Push Notifications\n[block:html]\n{\n  \"html\": \"<div class=\\\"row integrate-sdk-section\\\" >\\n  \\n  <div class=\\\"col-sm-3\\\">\\n\\n  </div>\\n  \\n  <div class=\\\"col-sm-3\\\">\\n    <a href=\\\"/docs/push-notifications-for-ios\\\">\\n    <img src=\\\"https://files.readme.io/z5IuJfO8SzK9n94EcNQ5_ios.png\\\" >\\n  <div class=\\\"description\\\">\\n    iOS\\n  </div>\\n    </a>\\n  </div>\\n\\n\\n  <div class=\\\"col-sm-3\\\">\\n    <a href=\\\"/docs/enable-push-notifications-for-android\\\">\\n    <img src=\\\"https://files.readme.io/QbxKWCzRs6nnEELD9FvQ_android.png\\\" >\\n  <div class=\\\"description\\\">\\n    Android\\n  </div>\\n    </a>\\n  </div>\\n\\n</div>\\n\\n<style>\\n  \\n  .integrate-sdk-section img{\\n    width:120px;\\n    height:120px;\\n  }\\n  \\n  .integrate-sdk-section a {\\n    display:block;\\n    padding:20px 0px 10px 0px;\\n    border-radius:5px;\\n  }\\n  \\n  .integrate-sdk-section a:hover {\\n    background-color:#f9f9f9 !important;\\n   \\n  }\\n  \\n  .integrate-sdk-section .col-sm-3 {\\n    text-align:center;\\n  }\\n  \\n  .integrate-sdk-section .description {\\n    padding-top:10px;\\n    text-align:center !important;\\n  }\\n    \\n\\n\\n</style>\"\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"body\": \"We also support the Unity, React Native and Cordova platforms. To get up and running on these platforms follow the respective iOS or Android Guides.\",\n  \"title\": \"Unity, React Native & Cordova\"\n}\n[/block]","excerpt":"","slug":"setting-up-push-notifications","type":"basic","title":"Setup Push Notifications"}

Setup Push Notifications


In addition to [In-app Messaging](doc:setting-up-in-app-messaging), Sailthru Mobile supports push Notifications via the Apple Push Notification Service (APNS) for iOS and Google Cloud Messaging (GCM) for Android. Push Notifications are a great way of communicating with your users when they are not using your app, and can be triggered when you publish Messages. ### Pick a platform to begin integrating Push Notifications [block:html] { "html": "<div class=\"row integrate-sdk-section\" >\n \n <div class=\"col-sm-3\">\n\n </div>\n \n <div class=\"col-sm-3\">\n <a href=\"/docs/push-notifications-for-ios\">\n <img src=\"https://files.readme.io/z5IuJfO8SzK9n94EcNQ5_ios.png\" >\n <div class=\"description\">\n iOS\n </div>\n </a>\n </div>\n\n\n <div class=\"col-sm-3\">\n <a href=\"/docs/enable-push-notifications-for-android\">\n <img src=\"https://files.readme.io/QbxKWCzRs6nnEELD9FvQ_android.png\" >\n <div class=\"description\">\n Android\n </div>\n </a>\n </div>\n\n</div>\n\n<style>\n \n .integrate-sdk-section img{\n width:120px;\n height:120px;\n }\n \n .integrate-sdk-section a {\n display:block;\n padding:20px 0px 10px 0px;\n border-radius:5px;\n }\n \n .integrate-sdk-section a:hover {\n background-color:#f9f9f9 !important;\n \n }\n \n .integrate-sdk-section .col-sm-3 {\n text-align:center;\n }\n \n .integrate-sdk-section .description {\n padding-top:10px;\n text-align:center !important;\n }\n \n\n\n</style>" } [/block] [block:callout] { "type": "info", "body": "We also support the Unity, React Native and Cordova platforms. To get up and running on these platforms follow the respective iOS or Android Guides.", "title": "Unity, React Native & Cordova" } [/block]