{"_id":"573094716b55e93400b32990","version":{"_id":"56cecbdc44c5700b0095c03d","project":"56cecbdb44c5700b0095c03a","__v":10,"createdAt":"2016-02-25T09:39:40.121Z","releaseDate":"2016-02-25T09:39:40.121Z","categories":["56cecbdc44c5700b0095c03e","56d1d2c05ad7ad0b00b7e809","56d1d2fa5ad7ad0b00b7e80a","56d369331660770b00081159","56d3693d1660770b0008115a","56e5361e7990160e002e3fbc","56e5362775eb791700a9c4d2","57a9030947f2f419009188d4","57b4705ee9e4c60e00f6f4c3","5828f5b04774ab0f005179a2"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"parentDoc":null,"project":"56cecbdb44c5700b0095c03a","user":"56cecbb2e50c9c1b008303eb","__v":6,"category":{"_id":"56e5361e7990160e002e3fbc","__v":0,"version":"56cecbdc44c5700b0095c03d","pages":[],"project":"56cecbdb44c5700b0095c03a","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-03-13T09:42:54.215Z","from_sync":false,"order":6,"slug":"admin-console","title":"Admin Console"},"githubsync":"","metadata":{"title":"","description":"","image":[]},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-05-09T13:45:21.061Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"Before integrating PushApp SDK into your Android / iOS app, it is recommended to setup your push notification credentials, in the PushApps Admin Console.\n\n[Android configuration](doc:setup-your-push-notifications-credentials#android-configuration)\n[iOS configuration](doc:setup-your-push-notifications-credentials#ios-configuration)\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Android configuration\"\n}\n[/block]\n1. Go to the Settings tab in the <a target=\"_blank\" href=\"https://my.pushapps.mobi\">PushApps Admin Console</a>.\n\n2. Search for the Android part, in the App Settings section:\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/9biyBIUMSZaQxSp2G0yc_Screen%20Shot%202016-05-09%20at%203.47.02%20PM.png\",\n        \"Screen Shot 2016-05-09 at 3.47.02 PM.png\",\n        \"681\",\n        \"131\",\n        \"#367da3\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n3. In the text box, enter your GCM API key and click Save.\n\n4. If everything went OK, you should see the green popup:\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/G7AIYxZCQY2YRkOKM9fu_Screen%20Shot%202016-05-09%20at%203.52.30%20PM.png\",\n        \"Screen Shot 2016-05-09 at 3.52.30 PM.png\",\n        \"358\",\n        \"134\",\n        \"#4ba38b\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"iOS configuration\"\n}\n[/block]\n1. Go to the Settings tab in the <a target=\"_blank\" href=\"https://my.pushapps.mobi\">PushApps Admin Console</a>.\n\n2. Search for the iOS part, in the App Settings section:\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/UaO5vb3BSqK6xezhb7XE_Screen%20Shot%202016-05-09%20at%203.53.53%20PM.png\",\n        \"Screen Shot 2016-05-09 at 3.53.53 PM.png\",\n        \"640\",\n        \"258\",\n        \"#5993b6\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n3. Upload your p12 file (after exporting it from your **private key**). After uploading the file, you'll be prompt to enter the file password:\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/yGXdoPr8RCeozrC1hAly_Screen%20Shot%202016-05-09%20at%203.56.58%20PM.png\",\n        \"Screen Shot 2016-05-09 at 3.56.58 PM.png\",\n        \"665\",\n        \"229\",\n        \"#3679a6\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n4. Enter the password in the text box and click Ok. If everything is correct, you'll see the green popup:\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/wF7Y9guJQHWeOIvDt1SM_Screen%20Shot%202016-05-09%20at%203.52.30%20PM.png\",\n        \"Screen Shot 2016-05-09 at 3.52.30 PM.png\",\n        \"358\",\n        \"134\",\n        \"#4ba38b\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nYou should also the expiration date of your certificate:\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/FC6vH5XQRylFTCzj3QyD_Screen%20Shot%202016-05-09%20at%203.59.35%20PM.png\",\n        \"Screen Shot 2016-05-09 at 3.59.35 PM.png\",\n        \"650\",\n        \"184\",\n        \"#61a1c4\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Production vs. Sandbox\",\n  \"body\": \"Don't forget that while developing your app, you'll need the Sandbox certificate. We strongly recommend to upload both the Sandbox and the Production certificates, before starting the iOS integration.\"\n}\n[/block]","excerpt":"","slug":"setup-your-push-notifications-credentials","type":"basic","title":"Setup Your Push Notifications Credentials"}

Setup Your Push Notifications Credentials


Before integrating PushApp SDK into your Android / iOS app, it is recommended to setup your push notification credentials, in the PushApps Admin Console. [Android configuration](doc:setup-your-push-notifications-credentials#android-configuration) [iOS configuration](doc:setup-your-push-notifications-credentials#ios-configuration) [block:api-header] { "type": "basic", "title": "Android configuration" } [/block] 1. Go to the Settings tab in the <a target="_blank" href="https://my.pushapps.mobi">PushApps Admin Console</a>. 2. Search for the Android part, in the App Settings section: [block:image] { "images": [ { "image": [ "https://files.readme.io/9biyBIUMSZaQxSp2G0yc_Screen%20Shot%202016-05-09%20at%203.47.02%20PM.png", "Screen Shot 2016-05-09 at 3.47.02 PM.png", "681", "131", "#367da3", "" ] } ] } [/block] 3. In the text box, enter your GCM API key and click Save. 4. If everything went OK, you should see the green popup: [block:image] { "images": [ { "image": [ "https://files.readme.io/G7AIYxZCQY2YRkOKM9fu_Screen%20Shot%202016-05-09%20at%203.52.30%20PM.png", "Screen Shot 2016-05-09 at 3.52.30 PM.png", "358", "134", "#4ba38b", "" ] } ] } [/block] [block:api-header] { "type": "basic", "title": "iOS configuration" } [/block] 1. Go to the Settings tab in the <a target="_blank" href="https://my.pushapps.mobi">PushApps Admin Console</a>. 2. Search for the iOS part, in the App Settings section: [block:image] { "images": [ { "image": [ "https://files.readme.io/UaO5vb3BSqK6xezhb7XE_Screen%20Shot%202016-05-09%20at%203.53.53%20PM.png", "Screen Shot 2016-05-09 at 3.53.53 PM.png", "640", "258", "#5993b6", "" ] } ] } [/block] 3. Upload your p12 file (after exporting it from your **private key**). After uploading the file, you'll be prompt to enter the file password: [block:image] { "images": [ { "image": [ "https://files.readme.io/yGXdoPr8RCeozrC1hAly_Screen%20Shot%202016-05-09%20at%203.56.58%20PM.png", "Screen Shot 2016-05-09 at 3.56.58 PM.png", "665", "229", "#3679a6", "" ] } ] } [/block] 4. Enter the password in the text box and click Ok. If everything is correct, you'll see the green popup: [block:image] { "images": [ { "image": [ "https://files.readme.io/wF7Y9guJQHWeOIvDt1SM_Screen%20Shot%202016-05-09%20at%203.52.30%20PM.png", "Screen Shot 2016-05-09 at 3.52.30 PM.png", "358", "134", "#4ba38b", "" ] } ] } [/block] You should also the expiration date of your certificate: [block:image] { "images": [ { "image": [ "https://files.readme.io/FC6vH5XQRylFTCzj3QyD_Screen%20Shot%202016-05-09%20at%203.59.35%20PM.png", "Screen Shot 2016-05-09 at 3.59.35 PM.png", "650", "184", "#61a1c4", "" ] } ] } [/block] [block:callout] { "type": "warning", "title": "Production vs. Sandbox", "body": "Don't forget that while developing your app, you'll need the Sandbox certificate. We strongly recommend to upload both the Sandbox and the Production certificates, before starting the iOS integration." } [/block]