{ "id": "98398", "key": "AC-2890", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-11-26T21:41:40.000+0000", "created": "2012-07-31T02:21:19.000+0000", "labels": [ "android", "module" ], "versions": [], "issuelinks": [], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:47:51.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "We have one application where we receive C2DM message and after tapping on the message we are opening the app.\r\n\r\nCurrently we are facing two issues as given below.\r\n\r\n+Test Code+:\r\nSample attached.\r\n\r\n+Issue 1+\r\n\r\n+Test Case+:\r\n1. Launch app.\r\n2. Press back button to close the app.\r\n3. Fire c2dm message\r\n4. Get the following log in log cat\r\n\r\n07-31 14:19:04.437: DEBUG/C2DMReceiver(3596): (IntentService[C2DMBaseReceiver]) [11742,13736] Message received\r\n07-31 14:19:04.453: DEBUG/C2DMReceiver(3596): (IntentService[C2DMBaseReceiver]) [14,13750] Message key: sel value: 98\r\n07-31 14:19:04.457: DEBUG/C2DMReceiver(3596): (IntentService[C2DMBaseReceiver]) [5,13755] Message key: title value: Google\r\n07-31 14:19:04.460: DEBUG/C2DMReceiver(3596): (IntentService[C2DMBaseReceiver]) [6,13761] Message key: from value: android123developer@gmail.com\r\n07-31 14:19:04.492: DEBUG/C2DMReceiver(3596): (IntentService[C2DMBaseReceiver]) [20,13781] Message key: collapse_key value: Hi\r\n07-31 14:19:04.492: DEBUG/C2DMReceiver(3596): (IntentService[C2DMBaseReceiver]) [11,13792] Start to show the message from Titanium \r\n07-31 14:19:04.503: WARN/V8Function(3596): Runtime disposed, cannot call function.\r\n\r\n5. Here app is not closing as in adb shell if we write ps to know the process status then it shows this process as active.\r\n\r\napp_101 3596 83 167696 31776 ffffffff 00000000 S com.c2dm\r\n\r\nWhen we close the app by using advanced task killer then only the app is closing properly and we are able to show the notification from the module\r\n\r\n+Sample Curl To Fire C2DM message+.\r\n\r\ncurl --header \"Authorization: GoogleLogin auth=DQAAAM0AAADgG68LGrrctYJyZG9DTu06PWUWCJIh4du0VK4KfpS5Gyyofh0cHrpsD3rW_sD6xtP59t2K60Rc7ve6fickxqg61n6wH2UVKIgDDLvMHFJ9ijE4YxycTP_CRqw8ygdyEBUzACgnT54vp3xi4Unyn_TsXSkOXBk5rHORXKQdYpVbzatgL6tTGPtAR13g4P5uaLCcxqjj4m-WWhOTqCtbpe4_q42MfMcFQ0L7mY1BasyDN2JrrBljlcNoOmoCUWn7sISMEObk0OHZ7B5Gfs0fRO7R\" \"https://android.apis.google.com/c2dm/send\" -d registration_id=put your registration here -d \"data.sel=98\" -d \"data.title=Google\" -d collapse_key=Hi\r\n\r\n+Issue 2+\r\nWe are not able to customize the notification from within the module as we don't have any resource folder where we can give our custom layout.xml file (Same way we customize in android)\r\nSo is there any way to customize the notification from within the module. If yes please let me know how or share any sample code.", "attachment": [ { "id": "30163", "filename": "SampleC2DMModule.zip", "author": { "name": "surajit_rcc8", "key": "surajit_rcc8", "displayName": "Surajit Biswas", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-31T02:21:19.000+0000", "size": 1196206, "mimeType": "application/zip" }, { "id": "30162", "filename": "SampleC2DMTitaniumCode.zip", "author": { "name": "surajit_rcc8", "key": "surajit_rcc8", "displayName": "Surajit Biswas", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-31T02:21:19.000+0000", "size": 791587, "mimeType": "application/zip" } ], "flagged": false, "summary": "Can't customize notification from within the module and after pressing the back button app is not closing properly", "creator": { "name": "surajit_rcc8", "key": "surajit_rcc8", "displayName": "Surajit Biswas", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "surajit_rcc8", "key": "surajit_rcc8", "displayName": "Surajit Biswas", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK Version 2.1.1.v20120718121609\r\nPlatform OS: Android\r\nPlatform OS Version: 2.3.3 (GB), 4.0.3 (ICS)\r\nDevice details: Samsung Galaxy S, Samsung Galaxy S2, Samsung Galaxy Note\r\nHost Operating System: Windows 7\r\nTitanium Studio Build: 2.1.0.201206251749", "comment": { "comments": [ { "id": "210781", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Please open a ticket in our helpdesk. \r\nhttp://support.appcelerator.com/ \r\n\r\nJira is the bug reporting system for Titanium as a platform. We will be able to help you better through the HD.\r\n\r\nThanks\r\n\r\n", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-07-31T11:50:52.000+0000", "updated": "2012-07-31T11:50:52.000+0000" }, { "id": "228521", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing on the assumption that a helpdesk ticket was opened. If otherwise, please respond.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-26T21:41:40.000+0000", "updated": "2012-11-26T21:41:40.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }