{ "id": "166661", "key": "TIMOB-24497", "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": "19333", "description": "Patch release for important items that did not make it into 6.0.3", "name": "Release 6.0.4", "archived": false, "released": true, "releaseDate": "2017-04-27" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-04-21T22:34:42.000+0000", "created": "2017-03-17T15:12:30.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-6.0.3" ], "versions": [ { "id": "18928", "name": "Release 6.0.2", "archived": false, "released": true, "releaseDate": "2017-02-27" } ], "issuelinks": [ { "id": "54570", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "155125", "key": "TIMOB-20459", "fields": { "summary": "Android newintent event 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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-04-21T23:51:21.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": "1. Press \"CREATE SHORTCUT\" \r\n2. Kill the app\r\n3. Start the app via shortcut - observe correct behaviour (WITH EXTRA: TEST)\r\n4. Move app into background\r\n5. Resume the app using shortcut - observe invalid behaviour WITH EXTRA : null\r\n\r\n{code:js}\r\nvar win = Ti.UI.createWindow({\r\n layout: 'vertical'\r\n }),\r\n bar = Ti.UI.createView({\r\n layout: 'horizontal',\r\n width: Ti.UI.FILL,\r\n height: Ti.UI.SIZE\r\n })\r\n createShortcut = Ti.UI.createButton({\r\n title: 'CREATE SHORTCUT',\r\n left: 0\r\n }),\r\n clear = Ti.UI.createButton({\r\n title: 'CLEAR',\r\n right: 0\r\n }),\r\n scrollView = Ti.UI.createScrollView({\r\n layout: 'vertical',\r\n height: Ti.UI.FILL,\r\n backgroundColor: 'white'\r\n });\r\n \r\n// create homescreen shortcut\r\ncreateShortcut.addEventListener('click', function (e) {\r\n var currentIntent = Ti.Android.currentActivity.getIntent(),\r\n shortcutIntent = Ti.Android.createIntent({\r\n action: \"com.android.launcher.action.INSTALL_SHORTCUT\",\r\n });\r\n \r\n currentIntent.setAction(Ti.Android.ACTION_MAIN);\r\n currentIntent.putExtra(\"shortcut\", \"TEST\");\r\n currentIntent.addCategory(Ti.Android.CATEGORY_HOME);\r\n \r\n shortcutIntent.putExtra(Ti.Android.EXTRA_SHORTCUT_NAME, \"SHORTCUT\");\r\n shortcutIntent.putExtra(Ti.Android.EXTRA_SHORTCUT_INTENT, currentIntent);\r\n \r\n Ti.Android.currentActivity.sendBroadcast(shortcutIntent);\r\n});\r\n \r\n// clear intent log\r\nclear.addEventListener('click', function (e) {\r\n scrollView.removeAllChildren();\r\n});\r\n \r\n// intent listener\r\nTi.Android.currentActivity.addEventListener('newintent', function (e) {\r\n scrollView.add(Ti.UI.createLabel({\r\n top: 10,\r\n color: 'black',\r\n text: 'INTENT ' + JSON.stringify(e.intent) + ' WITH EXTRA: ' + e.intent.getStringExtra('shortcut')\r\n }));\r\n});\r\n \r\n// launch intent\r\nscrollView.add(Ti.UI.createLabel({\r\n top: 10,\r\n color: 'black',\r\n text: 'LAUNCH INTENT ' + JSON.stringify(Ti.Android.currentActivity.getIntent()) + ' WITH EXTRA: ' + Ti.Android.currentActivity.getIntent().getStringExtra('shortcut')\r\n}));\r\n \r\nbar.add(createShortcut);\r\nbar.add(clear);\r\nwin.add(bar);\r\nwin.add(scrollView);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Resuming app from intent does not provide EXTRA", "creator": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 871, "state": "closed", "name": "2017 Sprint 08 SDK", "startDate": "2017-04-10T15:40:31.217Z", "endDate": "2017-04-24T15:40:00.000Z", "completeDate": "2017-04-23T21:46:37.098Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "413685", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/8894", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T16:29:40.000+0000", "updated": "2017-03-20T16:29:40.000+0000" }, { "id": "414355", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "6_0_X: https://github.com/appcelerator/titanium_mobile/pull/8901", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T20:04:57.000+0000", "updated": "2017-03-21T20:04:57.000+0000" }, { "id": "414874", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "\r\n\r\n{noformat}\r\nMac OS Version : 10.12.3\r\nAppc CLI : 6.1.0\r\nAppc NPM : 4.2.9-1\r\nNode : v4.6.0\r\nDevice: Nexus 5x(6.0.1) Pixel XL(7.1.2)\r\nEmulator: (6.0), (4.4.2)\r\n{noformat}\r\n\r\nUsing above env passed FR. After merge, the changes are present in SDK {{6.0.3.v20170322110142}}.\r\n\r\n*Closing*", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2017-03-22T18:41:02.000+0000", "updated": "2017-03-22T18:41:02.000+0000" }, { "id": "414877", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Since this PR and the related ticket are inter-related, will reopen this and move to SDK 6.0.4 since we are unable to merge the other PR.\r\n", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T18:56:56.000+0000", "updated": "2017-03-22T18:56:56.000+0000" }, { "id": "416091", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "6_0_X: https://github.com/appcelerator/titanium_mobile/pull/8910", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-28T23:13:48.000+0000", "updated": "2017-03-28T23:13:48.000+0000" }, { "id": "417839", "author": { "name": "nradaev", "key": "nradaev", "displayName": "Nikita Radaev", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 6.0.4.v20170420100617 -> doesnt work \r\nTested with 6.1.0.v20170420092509 -> works fine \r\n\r\nHas this been added into latest 6.0.4 build?", "updateAuthor": { "name": "nradaev", "key": "nradaev", "displayName": "Nikita Radaev", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-21T15:20:21.000+0000", "updated": "2017-04-21T15:20:21.000+0000" }, { "id": "417867", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Done.\r\nMerged 6.0.4 PR waiting for build from CI to close.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-21T22:35:12.000+0000", "updated": "2017-04-21T22:35:12.000+0000" }, { "id": "417874", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix in 6.0.4.v20170421153428.\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-21T23:51:11.000+0000", "updated": "2017-04-21T23:51:11.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }