{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","params":[],"results":{"codes":[]},"settings":"","apiSetting":null},"next":{"description":"","pages":[]},"title":"Setup Push Notifications","type":"basic","slug":"setting-up-push-notifications","excerpt":"","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 Firebase Cloud Messaging (FCM) 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 React Native platform. To get up and running on this platform please follow the respective iOS or Android Guides.\",\n  \"title\": \"React Native\"\n}\n[/block]","updates":[],"order":1,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5e6156bf5e4a51006dcd812c","category":{"sync":{"isSync":false,"url":""},"pages":["5e6156bf5e4a51006dcd812a","5e6156bf5e4a51006dcd812c","5e6156bf5e4a51006dcd812d","5e6156bf5e4a51006dcd812e","55e682b7de6fef23009480dc","5e6156bf5e4a51006dcd812f","5e6156bf5e4a51006dcd8130","5e6156bf5e4a51006dcd8131","5e6156bf5e4a51006dcd8132","5e6156bf5e4a51006dcd8133","5e6156bf5e4a51006dcd8134","5b720760c44b7600034b79bc","5e6156bf5e4a51006dcd8135","5e6156bf5e4a51006dcd8148","5e6156bf5e4a51006dcd8149","5e6156bf5e4a51006dcd814a","5e6156bf5e4a51006dcd814b","5e6156bf5e4a51006dcd814c","5e6156bf5e4a51006dcd814f","5e6156bf5e4a51006dcd8150","5e6156bf5e4a51006dcd8152","561c6ca0be5fb20d00077754","5e6156bf5e4a51006dcd8157","5e6156bf5e4a51006dcd8158","5b720760c44b7600034b79e2","5e6156bf5e4a51006dcd8159","5e6156bf5e4a51006dcd815a","5e6156bf5e4a51006dcd815b","5e6156bf5e4a51006dcd815c","56cfa5386c5d7a13005eec0f","56e73d86555c030e00a52a73","56e7460c9000b120000ffe2e","56e8c19e99c6400e003820cf","56e8c53fc88bf80e00f8bed8","56f06ff4d386ce0e008e9b21"],"title":"Install in your app","slug":"install-in-your-app","order":1,"from_sync":false,"reference":false,"_id":"5e6156bf5e4a51006dcd8121","__v":35,"createdAt":"2015-09-02T04:30:13.305Z","project":"55e67aaa9cc7c62b00c4a1ea","version":"5e6156bf5e4a51006dcd818c"},"createdAt":"2015-09-02T04:33:44.529Z","parentDoc":null,"version":{"version":"1.5","version_clean":"1.5.0","codename":"ST Rebrand","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["5e6156bf5e4a51006dcd8120","5e6156bf5e4a51006dcd8121","5e6156bf5e4a51006dcd8122","5e6156bf5e4a51006dcd8123","5e6156bf5e4a51006dcd8124","561c61b4ad272c0d00a892df","586c014c0abf1d0f000d04d4","58991d2ad207df0f0002186b","5e6156bf5e4a51006dcd8125","5e6156bf5e4a51006dcd8126","5af0fe494ca2730003cbc98a","5af0fe55ec80af0003804ca2","5e69868cbd5dcb006b35867b","5e6986ca2c6652006791b6e8"],"_id":"5e6156bf5e4a51006dcd818c","project":"55e67aaa9cc7c62b00c4a1ea","__v":2,"forked_from":"5b720760c44b7600034b7a08","createdAt":"2015-09-02T04:27:23.612Z","releaseDate":"2015-09-02T04:27:23.612Z"},"githubsync":"","project":"55e67aaa9cc7c62b00c4a1ea","user":"55d2bd8e2463351700f67dd7","__v":10}

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 Firebase Cloud Messaging (FCM) 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 React Native platform. To get up and running on this platform please follow the respective iOS or Android Guides.", "title": "React Native" } [/block]