{"_id":"56c41d876063071700500d06","version":{"_id":"56bc8e689afb8b0d00d62dd2","project":"56bc8e679afb8b0d00d62dcf","__v":18,"createdAt":"2016-02-11T13:36:40.146Z","releaseDate":"2016-02-11T13:36:40.146Z","categories":["56bc8e689afb8b0d00d62dd3","56c3c837bc41330d009f25ed","56c3c83e521f350d00d348eb","56c3c8452d97560d00e23cd8","56c3c85234df460d00c2beb8","56c4180d70187b17005f43b4","56c418162d97560d00e23cf6","56c4181cc4796b0d007ef039","56c4182370187b17005f43b5","56c418292e75e01700986052","56c4183328bd680d005e7ac6","56c4183bbb64720d00552b88","56c418414040602b0064cea0","56c4184754b6030d00ec29a1","56c4184c28bd680d005e7ac7","56c4185370187b17005f43b6","56c4185b6063071700500cfc","582a98b6f8c0a0190053d7a5"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"56c4184c28bd680d005e7ac7","__v":5,"project":"56bc8e679afb8b0d00d62dcf","pages":["56c41d876063071700500d06","56c41d92bb64720d00552b94","56c41d9e4f0aed1700afabac","56c41dafc0c4630d004e86c3","56c41dbbc0c4630d004e86c5"],"version":"56bc8e689afb8b0d00d62dd2","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-02-17T06:50:52.926Z","from_sync":false,"order":6,"slug":"push","title":"Push"},"parentDoc":null,"project":"56bc8e679afb8b0d00d62dcf","user":"56b98db7bb36440d0001f492","__v":2,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-02-17T07:13:11.260Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"In order to send push notifications to iOS devices you must provide Buddy with the necessary credentials to send notifications on your behalf.  \n\n####Visit the Apple Dev Center and find the link for **\"Certificates, Identifiers & Profiles\"**\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/jbkkSwPRvufjUyscTeFs_push_getting_started_1.png\",\n        \"push_getting_started_1.png\",\n        \"1049\",\n        \"129\",\n        \"#3392d3\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n####Navigate to **\"Certificates\"**\n\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/IY9h39pARhGZOkdyy22r_push_getting_started_2.png\",\n        \"push_getting_started_2.png\",\n        \"378\",\n        \"350\",\n        \"#378abf\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n####Follow instructions to create a new APNS certificate\n\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/Dm9jZpURdWvq1jFFTdwr_push_getting_started_3.png\",\n        \"push_getting_started_3.png\",\n        \"969\",\n        \"624\",\n        \"#08aae3\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nDownload the new certificate; you should have a file with a **.cer** extension in your download directory. Now you need the private key in **.p12** format. To create your private key open Keychain Access, select \"Keys\", find the APNS private key, select export and save the file locally.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/aYnav1QtSzWHTGbxEgtB_push_getting_started_4.png\",\n        \"push_getting_started_4.png\",\n        \"966\",\n        \"104\",\n        \"#3963cd\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n###Uploading APNS credentials\n\nLogin to [buddyplatform.com](https://buddyplatform.com) and navigate to your App. Select Push from the primary navigation menu and you will be presented with the following screen:\n\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/akura2FORft6VGMoCl5L_push_getting_started_5.png\",\n        \"push_getting_started_5.png\",\n        \"397\",\n        \"240\",\n        \"#0d4a9e\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nUpload the .cer and .p12 files as well as any passwords you set on the private key. When the upload is complete you will be able to view a formatted version of your certificate and key. Test your credentials by sending a push notification!","excerpt":"","slug":"getting-started-apns","type":"basic","title":"Getting Started - APNS"}

Getting Started - APNS


In order to send push notifications to iOS devices you must provide Buddy with the necessary credentials to send notifications on your behalf. ####Visit the Apple Dev Center and find the link for **"Certificates, Identifiers & Profiles"** [block:image] { "images": [ { "image": [ "https://files.readme.io/jbkkSwPRvufjUyscTeFs_push_getting_started_1.png", "push_getting_started_1.png", "1049", "129", "#3392d3", "" ] } ] } [/block] ####Navigate to **"Certificates"** [block:image] { "images": [ { "image": [ "https://files.readme.io/IY9h39pARhGZOkdyy22r_push_getting_started_2.png", "push_getting_started_2.png", "378", "350", "#378abf", "" ] } ] } [/block] ####Follow instructions to create a new APNS certificate [block:image] { "images": [ { "image": [ "https://files.readme.io/Dm9jZpURdWvq1jFFTdwr_push_getting_started_3.png", "push_getting_started_3.png", "969", "624", "#08aae3", "" ] } ] } [/block] Download the new certificate; you should have a file with a **.cer** extension in your download directory. Now you need the private key in **.p12** format. To create your private key open Keychain Access, select "Keys", find the APNS private key, select export and save the file locally. [block:image] { "images": [ { "image": [ "https://files.readme.io/aYnav1QtSzWHTGbxEgtB_push_getting_started_4.png", "push_getting_started_4.png", "966", "104", "#3963cd", "" ] } ] } [/block] ###Uploading APNS credentials Login to [buddyplatform.com](https://buddyplatform.com) and navigate to your App. Select Push from the primary navigation menu and you will be presented with the following screen: [block:image] { "images": [ { "image": [ "https://files.readme.io/akura2FORft6VGMoCl5L_push_getting_started_5.png", "push_getting_started_5.png", "397", "240", "#0d4a9e", "" ] } ] } [/block] Upload the .cer and .p12 files as well as any passwords you set on the private key. When the upload is complete you will be able to view a formatted version of your certificate and key. Test your credentials by sending a push notification!