{ "id": "110547", "key": "AC-2064", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-04-04T23:24:51.000+0000", "created": "2013-03-04T02:27:42.000+0000", "labels": [ "APNS", "Notifications", "Push", "ios" ], "versions": [], "issuelinks": [], "assignee": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "updated": "2016-03-08T07:41:01.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "I'm unable to receive any callbacks (not success nor error) when registering an iOS device for Push Notifications within Titanium Mobile.\r\n\r\nI've generated my Development and Production Push SSL Certificates within iOS Provisioning Portal. The App ID doesn't use a wildcard. I'm testing on physical devices and not the Simulator.\r\n\r\nWhen calling Ti.Network.registerForPushNotifications() I'm successfully seeing the Allow/Deny alert prompt however when clicking Allow I see no Success or Error callbacks fired. This of course means I can't obtain the deviceToken!\r\n\r\nClicking Allow successfully adds the app under the Notifications section of Settings of course without the deviceToken that's useless.\r\n\r\n{code:title=Register for Push Notifications|borderStyle=solid}\r\nTi.Network.registerForPushNotifications({\r\n types: [Ti.Network.NOTIFICATION_TYPE_BADGE,\r\n Ti.Network.NOTIFICATION_TYPE_ALERT,\r\n Ti.Network.NOTIFICATION_TYPE_SOUND],\r\n success: function(e) {\r\n Ti.API.info(\"PUSH SUCCESS: token = \"+e.deviceToken);\r\n var deviceToken = e.deviceToken;\r\n },\r\n error: function(e) {\r\n Ti.API.info(\"PUSH FAILED\");\r\n },\r\n callback: function(e) {\r\n // Ignoring for now...\r\n }\r\n});\r\n{code}", "attachment": [], "flagged": false, "summary": "No success or error callbacks after registering for push notifications on iOS", "creator": { "name": "redrum", "key": "redrum", "displayName": "Tim Keir", "active": true, "timeZone": "Australia/Sydney" }, "subtasks": [], "reporter": { "name": "redrum", "key": "redrum", "displayName": "Tim Keir", "active": true, "timeZone": "Australia/Sydney" }, "environment": "System: Mac OSX 10.8.2\r\nTesting on iPad 2 Wifi iOS 5.1.1 and an iPad 3 Wifi iOS 6.1.2\r\nTi Studio 3.0.3.201302191606\r\nTi SDK 3.0.2.v20130207164659\r\nAlloy 1.0.0-cr", "comment": { "comments": [ { "id": "246379", "author": { "name": "redrum", "key": "redrum", "displayName": "Tim Keir", "active": true, "timeZone": "Australia/Sydney" }, "body": "For future reference this occurs when the required ports are closed behind a Firewall. Specifically port 5223. More info here: \r\nhttp://support.apple.com/kb/TS4264?viewlocale=en_US\r\n\r\nThis is most likely to occur when testing on WiFi only iPads as iOS will opt to use a Cellular Data Connection when available to bypass such issues (even when connected to Wifi).\r\n\r\nYou should probably update the documentation to reflect this as there's currently no feedback indicating this.\r\nhttp://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Network", "updateAuthor": { "name": "redrum", "key": "redrum", "displayName": "Tim Keir", "active": true, "timeZone": "Australia/Sydney" }, "created": "2013-04-08T07:19:33.000+0000", "updated": "2013-04-08T07:21:20.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }