{ "id": "60656", "key": "TIMOB-24", "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": [ { "id": "11216", "name": "Release 0.8.0", "archived": true, "released": true, "releaseDate": "2009-11-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:50:09.000+0000", "created": "2011-04-15T02:22:39.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:50:09.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}
The purpose of this API is to define the Push Notification spec\nfor iPhone
\n\n\n// register for push notifications\nTitanium.Network.registerForPushNotifications({\n types:[Titanium.Network.NOTIFICATION_TYPE_BADGE, Titanium.Network.NOTIFICATION_TYPE_ALERT, Titanium.Network.NOTIFICATION_TYPE_SOUND],\n success:function(deviceToken)\n {\n },\n error: function(error)\n {\n },\n callback:myfunction\n});\n\nfunction myfunction(data)\n{\n // returns payload JSON object\n\n}\n\nsee http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ApplePushService/ApplePushService.html#//apple_ref/doc/uid/TP40008194-CH100-SW1\n\nfor JSON object spec
\n
Was suggested to change it from UI to Titanium.Network\n(Titanium.Network.iPhone.pushNotification?)
\nAlso suggesting that we rename\npushNotificationRegistrationFailed and handlePushNotification to\naddEventListeners of 'registrationFailed' and 'pushNotification',\nor otherwise indicate that this is adding a callback function\ninstead of invoking one.
(from [6aacb9a143ca74066ff76117da3f4b6f66c166ff])\n[#24\nstate:resolved] more fixes for push notifications and testing on\ndevice [#199 state:resolved] implementation of\napplication properties added Settings.bundle to Kitchen Sink and\nrelated tests
\n\nhttp://github.com/appcelerator/titanium_mobile/commit/6aacb9a143ca7...