{ "id": "63056", "key": "TIMOB-2424", "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": "11234", "name": "Release 1.6.0 M01", "archived": true, "released": true, "releaseDate": "2010-12-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:59:04.000+0000", "created": "2011-04-15T03:19:21.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "ios", "iphone", "notifications", "push", "release-1.6.0", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:59:04.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}

Extra data passed in a Push Notification is stripped before it\nget's to the app.
\ne.g. acme1 & acme2 are not readable:

\n

{

\n
\n\"aps\" : {\n    \"alert\" : \"You got your emails.\",\n    \"badge\" : 9,\n    \"sound\" : \"bingbong.aiff\"\n},\n\"acme1\" : \"bar\",\n\"acme2\" : 42\n
\n

}

{html}", "attachment": [], "flagged": false, "summary": "Push notifications not passing full payload to app", "creator": { "name": "jameswragg", "key": "jameswragg", "displayName": "James Wragg", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jameswragg", "key": "jameswragg", "displayName": "James Wragg", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128415", "author": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This sticket has been sitting unassigned, with no milestone and\nlow priority...

\n

I guess this came in directly, outside of HelpDesk.

\n

Assigning to myself for triage

{html}", "updateAuthor": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:19:21.000+0000", "updated": "2011-04-15T03:19:21.000+0000" }, { "id": "128416", "author": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Blain please take a look at whether we allow this.

{html}", "updateAuthor": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:19:22.000+0000", "updated": "2011-04-15T03:19:22.000+0000" }, { "id": "128417", "author": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

For developers they can use this workaround:

\n

{

\n

\"aps\" : {

\n
\n\"alert\" : \"You got your emails.\",\n\"badge\" : 9,\n\"sound\" : \"bingbong.aiff\",\n\"payload\" : { \n     \"acme1\" : \"bar\",\n     \"acme2\" : 42\n}\n
\n

} }

\n

We will be looking in to this for the next release following\nR1.5.0

{html}", "updateAuthor": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:19:22.000+0000", "updated": "2011-04-15T03:19:22.000+0000" }, { "id": "128418", "author": { "name": "jameswragg", "key": "jameswragg", "displayName": "James Wragg", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I raised the ticket after being told by help desk this was an\nenhancement (I disagree):
\nhttp://developer.appcelerator.com/helpdesk/view/40681

\n

For reference, the example was pulled from this page:
\n\nhttp://developer.apple.com/library/ios/#documentation/NetworkingInt...

\n

This bug is causing my push notifications to have the very ugly\nwork-around of having essential payload data in the user-visible\nmessage & parsing it out in my app, e.g.

\n

\"aps\" : {

\n
\n\"alert\" : \"There are new matches to your search (a834,1,624632)\",\n\"badge\" : 9,\n\"sound\" : \"bingbong.aiff\"\n
\n

},

\n

As you can imagine, users are confused.

{html}", "updateAuthor": { "name": "jameswragg", "key": "jameswragg", "displayName": "James Wragg", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:19:22.000+0000", "updated": "2011-04-15T03:19:22.000+0000" }, { "id": "128419", "author": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

What about my example above of the payload workaround? I don't\nsee the last code example by James Wragg using that.

\n

We will look at the the format of the first example and from\nHelpDesk and evaluate whether we think we should support that going\nforward.

{html}", "updateAuthor": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:19:22.000+0000", "updated": "2011-04-15T03:19:22.000+0000" }, { "id": "128420", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [4d2377fb38804d1177ac8369181daa276f688609])\n[#2424] Include full dictionary in push\nnotifications, but still copy APS props to toplevel for backcompat.\n\nhttps://github.com/appcelerator/titanium_mobile/commit/4d2377fb3880...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:19:23.000+0000", "updated": "2011-04-15T03:19:23.000+0000" }, { "id": "128421", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Forgot to tag fixed-in-qa.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:19:23.000+0000", "updated": "2011-04-15T03:19:23.000+0000" }, { "id": "128422", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Correcting the milestone, this was committed on master. It is\nnot in the 1.5.1 release.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:19:23.000+0000", "updated": "2011-04-15T03:19:23.000+0000" }, { "id": "128423", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

1.6.0.0db09d1e 4gt touch, 3.1.3 iphone

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:19:24.000+0000", "updated": "2011-04-15T03:19:24.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }