{"_id":"5b720760c44b7600034b79d2","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"},"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"},"githubsync":"","project":"55e67aaa9cc7c62b00c4a1ea","user":"55d2bd8e2463351700f67dd7","__v":10,"parentDoc":null,"metadata":{"title":"","description":"","image":[]},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-09-13T21:49:21.324Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","apiSetting":null,"auth":"required","params":[],"url":""},"isReference":false,"order":2,"body":"##Testing Push in Development \n\nAll devices in Carnival can either be production devices or development devices. We allow you to send test pushes to development devices to confirm push is set up correctly.  \n\nTo set a device to development mode:\n\n1. Build and run the app in debug mode (optionally attached to Xcode's debugger), using a development provisioning profile.\n2. Find the device in Settings, Logs, Devices\n3. Choose edit, and then click the switch that says \"Development\" to ON. Click Save.\n\nYou can now send pushes via the API or Dashboard and they will arrive on your iOS device.\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/86e45ea-Screen_Shot_2016-07-26_at_11.55.06_AM.png\",\n        \"Screen Shot 2016-07-26 at 11.55.06 AM.png\",\n        855,\n        342,\n        \"#74b3e3\"\n      ],\n      \"caption\": \"Click a device, and on the right hand side, click the 3 dots to edit the device.\"\n    }\n  ]\n}\n[/block]\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/335bfb9-Screen_Shot_2016-07-26_at_11.56.35_AM.png\",\n        \"Screen Shot 2016-07-26 at 11.56.35 AM.png\",\n        646,\n        294,\n        \"#d0d7d9\"\n      ],\n      \"caption\": \"In the Device Details pop-up, you can change the details.\"\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"danger\",\n  \"title\": \"[iOS] Be careful mixing Development and Production devices\",\n  \"body\": \"If your app was signed using a development certificate, this will generate a token which can *only* be used via the sandbox gateway. Always ensure that devices built with a development certificate are marked as 'development' in the device log, as described above.\\n\\nAdditionally, you must have a development push certificate uploaded.\"\n}\n[/block]","excerpt":"","slug":"testing-developer-push-notifications","type":"basic","title":"Testing Development Push Notifications"}

Testing Development Push Notifications


##Testing Push in Development All devices in Carnival can either be production devices or development devices. We allow you to send test pushes to development devices to confirm push is set up correctly. To set a device to development mode: 1. Build and run the app in debug mode (optionally attached to Xcode's debugger), using a development provisioning profile. 2. Find the device in Settings, Logs, Devices 3. Choose edit, and then click the switch that says "Development" to ON. Click Save. You can now send pushes via the API or Dashboard and they will arrive on your iOS device. [block:image] { "images": [ { "image": [ "https://files.readme.io/86e45ea-Screen_Shot_2016-07-26_at_11.55.06_AM.png", "Screen Shot 2016-07-26 at 11.55.06 AM.png", 855, 342, "#74b3e3" ], "caption": "Click a device, and on the right hand side, click the 3 dots to edit the device." } ] } [/block] [block:image] { "images": [ { "image": [ "https://files.readme.io/335bfb9-Screen_Shot_2016-07-26_at_11.56.35_AM.png", "Screen Shot 2016-07-26 at 11.56.35 AM.png", 646, 294, "#d0d7d9" ], "caption": "In the Device Details pop-up, you can change the details." } ] } [/block] [block:callout] { "type": "danger", "title": "[iOS] Be careful mixing Development and Production devices", "body": "If your app was signed using a development certificate, this will generate a token which can *only* be used via the sandbox gateway. Always ensure that devices built with a development certificate are marked as 'development' in the device log, as described above.\n\nAdditionally, you must have a development push certificate uploaded." } [/block]