{ "id": "124193", "key": "TIMOB-16360", "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": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-10-20T17:59:22.000+0000", "created": "2013-12-26T15:53:32.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "module_acs", "qe-manualtest", "trayClickFocusedApp" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "41886", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "137567", "key": "MOD-1910", "fields": { "summary": "CloudPush: trayClickLaunchedApp and trayClickFocusedApp not fired", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "42283", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "135925", "key": "TIMOB-17945", "fields": { "summary": "Android: CloudPush - events not fired correctly", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-31T22:23:37.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": "10202", "name": "Android", "description": "Android Platform" } ], "attachment": [], "flagged": false, "summary": "Android: trayClickFocusedApp event not fired when push notification clicked in tray", "creator": { "name": "mgumbs", "key": "mgumbs", "displayName": "Mahlon Gumbs", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "mgumbs", "key": "mgumbs", "displayName": "Mahlon Gumbs", "active": true, "timeZone": "America/New_York" }, "environment": "- CLI version 3.2.0, Titanium SDK version 3.2.0.GA\r\n- Nexus S\r\n- Android 4.1.2\r\n- Mac OS X 10.8.5", "comment": { "comments": [ { "id": "289014", "author": { "name": "franco1215", "key": "franco1215", "displayName": "Paulo Alves", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "I have the same problem, if you use 3.1.3 is possible work with trayClickFocusedApp event? ", "updateAuthor": { "name": "franco1215", "key": "franco1215", "displayName": "Paulo Alves", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2014-01-21T12:45:09.000+0000", "updated": "2014-01-21T12:45:09.000+0000" }, { "id": "290767", "author": { "name": "stoda", "key": "stoda", "displayName": "Seth Toda", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Was able to reproduce this on Android 4.3, CLI 3.2, SDK 3.2. Moved to engineering\r\n\r\n", "updateAuthor": { "name": "stoda", "key": "stoda", "displayName": "Seth Toda", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-01T01:29:41.000+0000", "updated": "2014-02-03T18:15:01.000+0000" }, { "id": "290916", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Placing in consideration for 3.2.1.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-03T18:49:49.000+0000", "updated": "2014-02-03T18:49:49.000+0000" }, { "id": "291057", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator-modules/cloudpush/pull/6", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-04T01:16:55.000+0000", "updated": "2014-02-04T01:16:55.000+0000" }, { "id": "291454", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR to merge module: https://github.com/appcelerator/titanium_mobile/commit/2604bb2bb9600aa67dec291a7bb02a90684a3170", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-05T18:55:28.000+0000", "updated": "2014-02-05T18:55:28.000+0000" }, { "id": "291570", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix. Taping on the notification brings the app to the foreground & we get alert \"got the trayClickFocussedApp event\".\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 3.2.1.201401311225\r\nTi SDK : 3.2.1.v20140205094854\r\nMac OSX : 10.8.5\r\nAlloy : 1.3.1-cr \t\r\nCLI - 3.2.1 beta3\r\nNexus 4 - android 4.4.2", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-06T00:18:05.000+0000", "updated": "2014-02-06T00:18:05.000+0000" }, { "id": "293152", "author": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Should I expect to have payload in the event? I don't. However, \"callback\" gives me the payload and is now only fired when tapping notification in the tray. In past SDKs, \"callback\" was fired when the push notification was delivered to the phone, before tapping.\r\n\r\n{code}\r\n\tCloudPush.addEventListener(\"callback\", function(e) {\r\n\t\tTi.API.info(\"callback, with payload: \" + JSON.stringify(e));\r\n\t});\r\n\r\n\tCloudPush.addEventListener(\"trayClickFocusedApp\", function(e) {\r\n\t\tTi.API.info(\"trayClickFocusedApp, no payload: \" + JSON.stringify(e));\r\n\t});\r\n{code}\r\n\r\nEnvironment:\r\nStudio : 3.2.1.GA\r\nTi SDK : 3.2.1.GA\r\nTi CLI : 3.2.1.GA\r\nAlloy : 1.3.1\r\nDevice : Nexus 5, Android 4.4.2\r\n\r\nSo I'm using the \"callback\" event now, and not \"trayClickFocusedApp\".", "updateAuthor": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-14T08:44:03.000+0000", "updated": "2014-02-14T08:44:03.000+0000" }, { "id": "294057", "author": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I was wrong above. \"callback\" is fired when the push is received, not when the user taps. Other circumstances led me to believe it was happening on tap.", "updateAuthor": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-21T00:23:56.000+0000", "updated": "2014-02-21T00:23:56.000+0000" }, { "id": "328310", "author": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hi There,\r\n\r\nI am using ti.cloudpush 3.3.0,\r\nAnd i am getting Push and Callback is fine,\r\n\r\nBut not getting the below,\r\nCloudPush.addEventListener('trayClickLaunchedApp', function (evt) { alert('Tray Click Launched App (app was not running)'); });\r\n\t CloudPush.addEventListener('trayClickFocusedApp', function (evt) { alert('Tray Click Focused App (app was already running)'); });\r\n\r\nCan you help me to solved out this issue", "updateAuthor": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-10-16T09:16:13.000+0000", "updated": "2014-10-16T09:16:13.000+0000" }, { "id": "328334", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~simbu] Here is the current ticket for this issue TIMOB-17815\r\nIt will be fixed in the next version of ti.cloudpush.", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-16T16:57:46.000+0000", "updated": "2014-10-16T16:57:46.000+0000" }, { "id": "328348", "author": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Jira is saying I don't have permission to view TIMOB-17815.", "updateAuthor": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-16T18:43:10.000+0000", "updated": "2014-10-16T18:43:10.000+0000" }, { "id": "328359", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Try now.", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-16T19:55:46.000+0000", "updated": "2014-10-16T19:55:46.000+0000" }, { "id": "328362", "author": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Works now. Thank you!", "updateAuthor": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-16T20:21:20.000+0000", "updated": "2014-10-16T20:21:20.000+0000" }, { "id": "328420", "author": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "updateAuthor": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-10-17T04:33:09.000+0000", "updated": "2014-10-17T04:33:09.000+0000" }, { "id": "328470", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~simbu] You will either have to use ti.cloudpush 3.2.1 or wait for 3.3.1.", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-17T15:42:32.000+0000", "updated": "2014-10-17T15:42:32.000+0000" }, { "id": "328546", "author": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Jon Alter,\r\n\r\nI have tried with 3.2.1 module, But its not firing the Tray Events.", "updateAuthor": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-10-19T15:54:38.000+0000", "updated": "2014-10-19T15:54:38.000+0000" }, { "id": "328630", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "ti.cloudpush 3.3.1 can be downloaded here: https://github.com/appcelerator/titanium_mobile/raw/master/support/module/packaged/ti.cloudpush-android-3.3.1.zip", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-20T18:01:20.000+0000", "updated": "2014-10-20T18:01:20.000+0000" }, { "id": "328760", "author": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hi Jon Alter,\r\n\r\nReally, Thanks for this updated ti.cloudpush 3.3.1.\r\nIts working fine, But is there any way to get the payload on that TrayEvents like we are getting in callback.\r\n\r\nCan you please let me know is there any option for the firing the same event of\r\nTrayClickLaunchedApp, \r\nand TryClickFocusedApp for iOS. ?", "updateAuthor": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-10-21T05:49:12.000+0000", "updated": "2014-10-21T11:27:18.000+0000" }, { "id": "329154", "author": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hi Jon, \r\n\r\n Please have a look at my above comment, We need your help here, Since we are in the App Publishing stage.", "updateAuthor": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-10-23T12:49:41.000+0000", "updated": "2014-10-23T12:49:41.000+0000" }, { "id": "329179", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-23T16:06:07.000+0000", "updated": "2014-10-23T16:06:07.000+0000" }, { "id": "329307", "author": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hi Jon,\r\n\r\nThanks, We will manage the Android Payload issue and will create ticket if its more important.\r\nBut for iOS can you help us with the existing Ti versions.\r\n\r\nWe have used the Interactive notification already but its only for iOS 8, So it won't help us.", "updateAuthor": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-10-24T09:01:27.000+0000", "updated": "2014-10-24T09:11:32.000+0000" }, { "id": "329563", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~simbu] - We don't currently have an event that fires on iOS to let you know that the app was foregrounded by a user clicking on a notification. If this is important to you, please create another ticket requesting this feature and add a link to it here.", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-27T18:31:42.000+0000", "updated": "2014-10-27T18:32:02.000+0000" }, { "id": "331165", "author": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hi Jon,\r\n\r\nThanks, I have used the silent push notification for iOS for time being. \r\nhttp://docs.appcelerator.com/titanium/3.0/#!/guide/iOS_Background_Services\r\n\r\nI will create a ticket later if its important to me", "updateAuthor": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-11-07T12:16:26.000+0000", "updated": "2014-11-07T12:16:26.000+0000" }, { "id": "332881", "author": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "updateAuthor": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-11-19T09:04:39.000+0000", "updated": "2014-11-19T09:04:39.000+0000" }, { "id": "333079", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks for creating the ticket [~simbu].", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-11-20T17:00:02.000+0000", "updated": "2014-11-20T17:00:02.000+0000" }, { "id": "341369", "author": { "name": "Serfenia", "key": "serfenia", "displayName": "Patrick van Vuuren", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Jon Alter, is it possible you could push CloudPush 3.3.8 zip to https://github.com/appcelerator/titanium_mobile/raw/master/support/module/packaged/?\r\n\r\nWhen accessing the actual issue [MOD-1905], it is not possible for me to comment on that ticket.\r\nAnd your link https://github.com/appcelerator-modules/cloudpush/releases/tag/3.3.8 does not work for me to use it. It directs me to a 404 page.", "updateAuthor": { "name": "Serfenia", "key": "serfenia", "displayName": "Patrick van Vuuren", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-30T08:03:41.000+0000", "updated": "2015-01-30T08:03:41.000+0000" }, { "id": "341734", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~Serfenia], it is done. ", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-02-02T22:43:46.000+0000", "updated": "2015-02-02T22:43:46.000+0000" }, { "id": "371483", "author": { "name": "bradleycorn", "key": "bradleycorn", "displayName": "Brad Ball", "active": true, "timeZone": "America/New_York" }, "body": "I am still seeing this issue. When my app is backgrounded and I tap on a notification, the app gets foregrounded, but the trayClickFocusedApp event is never fired (neither is the callback event). I have tried both with singleCallback=true AND singleCallback=false and behaviour is the same. All other scenarios seem to work fine (trayClickLaunchedApp gets fired if the app is not running at all) and callback gets fired if the app is already foregrounded or if it's not running at all. But when the app is running but backgrounded, the trayClickFocusedApp and callback events are NOT fired.\r\n\r\nEnvironment:\r\nAppc Studio : 4.4.0.201511182122\r\nTi SDK : 5.1.0.GA\r\nMac OSX : 10.10.5\r\nTi.Cloudpush: 3.4.0\r\nGalaxy S4 - android 5.0.1", "updateAuthor": { "name": "bradleycorn", "key": "bradleycorn", "displayName": "Brad Ball", "active": true, "timeZone": "America/New_York" }, "created": "2015-11-25T22:04:27.000+0000", "updated": "2015-11-25T22:04:27.000+0000" }, { "id": "371496", "author": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~bradleycorn] I don't think the Appcelerator team is updated on closed tickets. You may want to open a new one if they don't acknowledge your comment.", "updateAuthor": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-11-26T00:17:53.000+0000", "updated": "2015-11-26T00:17:53.000+0000" }, { "id": "416595", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed, if there are any problems, please file a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-31T22:23:37.000+0000", "updated": "2017-03-31T22:23:37.000+0000" } ], "maxResults": 35, "total": 35, "startAt": 0 } } }