{ "id": "115607", "key": "TIMOB-14139", "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": "15499", "description": "2013 Sprint 13 API", "name": "2013 Sprint 13 API", "archived": true, "released": true, "releaseDate": "2013-07-01" }, { "id": "15111", "description": "2013 Sprint 13", "name": "2013 Sprint 13", "archived": true, "released": true, "releaseDate": "2013-07-01" } ], "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2013-07-01T21:19:46.000+0000", "created": "2013-06-06T15:22:18.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam" ], "versions": [], "issuelinks": [ { "id": "29973", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "115034", "key": "TIMOB-14001", "fields": { "summary": "Android: Allow sending extra data to the intent when opening a notification", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "29668", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "114910", "key": "TIMOB-13979", "fields": { "summary": "Android: activity resume not fired when using TabGroup", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-16T20:46:14.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" } ], "description": "h2. Problem description\r\nThere seem to be no intent extra when the app is using TabGroup. The extra data has been added to an intent that is run by a local notification.\r\n\r\nh2. Steps to reproduce\r\nTry the following example:\r\n\r\n{code}\r\nvar tabgroup = Ti.UI.createTabGroup();\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'black'\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n\ttitle: 'Notify'\r\n});\r\nbtn.addEventListener('click', function(e) {\r\n\t// Intent object to launch the application \r\n\tvar intent = Ti.Android.createIntent({\r\n\t flags : Ti.Android.FLAG_ACTIVITY_CLEAR_TOP | Ti.Android.FLAG_ACTIVITY_NEW_TASK,\r\n\t className : 'com.appcelerator.davide.testapp.TestappActivity'\r\n\t});\r\n\tintent.addCategory(Ti.Android.CATEGORY_LAUNCHER);\r\n\tintent.putExtra(Ti.Android.EXTRA_TEXT, \"notification\");\r\n\t\r\n\t// Create a PendingIntent to tie together the Activity and Intent\r\n\tvar pending = Titanium.Android.createPendingIntent({\r\n\t intent: intent,\r\n\t flags: Titanium.Android.FLAG_UPDATE_CURRENT\r\n\t});\r\n\t\r\n\t// Create the notification\r\n\tvar notification = Titanium.Android.createNotification({\r\n\t contentTitle: 'Something Happened',\r\n\t contentText : 'Click to return to the application.',\r\n\t contentIntent: pending\r\n\t});\r\n\t// Send the notification.\r\n\tTitanium.Android.NotificationManager.notify(1, notification);\r\n});\r\n\r\nwin.add(btn);\r\n\r\nvar tab = Ti.UI.createTab({\r\n\twindow: win,\r\n\ttitle: 'Tab 1'\r\n});\r\n\r\ntabgroup.addTab(tab);\r\ntabgroup.open();\r\n\r\ntabgroup.addEventListener('open', function() {\r\n\ttabgroup.getActivity().addEventListener('resume', function(e) {\r\n\t\tvar intent = e.source.intent;\r\n\t\tTi.API.info(\"intent: \" + JSON.stringify(intent));\r\n\t var notification = false;\r\n\t if (intent.hasExtra(Ti.Android.EXTRA_TEXT) && (intent.getStringExtra(Ti.Android.EXTRA_TEXT) == \"notification\")) {\r\n\t notification = true;\r\n\t intent.putExtra(Ti.Android.EXTRA_TEXT, \"\"); // remove the EXTRA_TEXT once captured\r\n\t }\r\n\t\r\n\t if (notification == true) {\r\n\t // operations to be performed when the app is open from the notification\r\n\t alert('Coming from a notification');\r\n\t } else {\r\n\t \talert('Just resumed the app');\r\n\t }\r\n\t});\t\r\n})\r\n{code}\r\n\r\nThe extra data seems to be always null", "attachment": [], "flagged": false, "summary": "Android: Intent extra does not seem to be present if the app is using TabGroup", "creator": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Android\r\nSDK 3.1.0", "comment": { "comments": [ { "id": "260493", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Waiting for further information from CS. resolving for now", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-07-01T21:19:46.000+0000", "updated": "2013-07-01T21:19:46.000+0000" }, { "id": "412944", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the information that was requested was never provided.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T20:46:14.000+0000", "updated": "2017-03-16T20:46:14.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }