{ "id": "63113", "key": "TIMOB-2481", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T03:20:58.000+0000", "created": "2011-04-15T03:20:57.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-30T17:30:32.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

Hi,

\n

I've tried the basic example below for push notifications, I get\nprompted to allow, then nothing happens, no error, no success, it\nfails silently. Unless I'm doing something wrong, the issue occurs\non the latest 1.4 release as well as the latest 1.5 build.

\n
\nTitanium.Network.registerForPushNotifications({\n    types: [\n        Titanium.Network.NOTIFICATION_TYPE_BADGE,\n        Titanium.Network.NOTIFICATION_TYPE_ALERT,\n        Titanium.Network.NOTIFICATION_TYPE_SOUND\n    ],\n    success:function(e)\n    {\n      alert(e.deviceToken);\n    },\n    error:function(e)\n    {\n        alert(e.error);\n    },\n    callback:function(e)\n    {\n        alert(\"Received a push notification\\n\\nPayload:\\n\\n\"+JSON.stringify(e.data));\n    }\n});\n
{html}", "attachment": [], "flagged": false, "summary": "iOS: Push Notifications Bug", "creator": { "name": "bricelechatellier", "key": "bricelechatellier", "displayName": "Brice Lechatellier", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bricelechatellier", "key": "bricelechatellier", "displayName": "Brice Lechatellier", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128599", "author": { "name": "tomquas", "key": "tomquas", "displayName": "tom quas", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

works w/ 1.5.1. ticket can be closed.

{html}", "updateAuthor": { "name": "tomquas", "key": "tomquas", "displayName": "tom quas", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:20:57.000+0000", "updated": "2011-04-15T03:20:57.000+0000" }, { "id": "128600", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Possibly due to jailbreaking, and Push was tested extensively\nwith 1.6.0GM. Invalidating.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:20:58.000+0000", "updated": "2011-04-15T03:20:58.000+0000" }, { "id": "240492", "author": { "name": "redrum", "key": "redrum", "displayName": "Tim Keir", "active": true, "timeZone": "Australia/Sydney" }, "body": "I'm receiving this same silent error with no callbacks using the latest 3.0.2 SDK with Alloy.\r\nMy iPad 3 prompts for permission but clicking accept silently sets the push within Settings/Notifications but returns no error or success callback (and obviously no deviceToken!).\r\nWhat's the resolution? My device is definitely not jailbroken. Furthermore what's the workflow for de-registering the device so that I can prompt for push notifications again? Uninstalling then changing the system clock forward 24 hours doesn't seem to work on iOS 6?", "updateAuthor": { "name": "redrum", "key": "redrum", "displayName": "Tim Keir", "active": true, "timeZone": "Australia/Sydney" }, "created": "2013-03-04T01:23:34.000+0000", "updated": "2013-03-04T01:23:34.000+0000" }, { "id": "416356", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-30T17:30:32.000+0000", "updated": "2017-03-30T17:30:32.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }