{ "id": "171333", "key": "TIMOB-25873", "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": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-04-02T16:43:57.000+0000", "created": "2018-03-16T03:16:50.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "escalation" ], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-06T17:49: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": "*Issue:* When I use the deep link for my project and try to access the Ti.Android.currentActivity.getIntent().getData() it always returns null for Ti SDK 6.2.0 and above but If I downgrade the SDK to 6.1.2 then it works fine. It cannot read data from incoming intents.\r\n\r\n\r\n*Steps to Reproduce*\r\n1. Create a new alloy App and use the following test code\r\n2. Install the app on any android device. \r\n2. Goto the browser and browse to https://uktvplay.uktv.co.uk site. \r\n3. Click on any episodes \r\n4. It will open up the app but getData() is always null but it should return a URL\r\n\r\n*Test code:*\r\n- https://gist.github.com/MotiurRahman/ca8cd6c8b2745c870836602dfb6875fe\r\n\r\n*Expected Result:* It should return the URL when the App is opened from the deep link.\r\n\r\nThanks!", "attachment": [], "flagged": false, "summary": "Android: Intent - getData(), getAction() always equal to null ", "creator": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": "Node.js\r\n Node.js Version = 8.9.4\r\n npm Version = 5.6.0\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.14\r\n\r\nTitanium SDK\r\n SDK Version = 7.1.0.GA\r\n \r\n Target Platform = android device v4.4.2 Samsung Tab 3", "closedSprints": [ { "id": 1018, "state": "closed", "name": "2018 Sprint 07 SDK", "startDate": "2018-03-25T21:59:36.637Z", "endDate": "2018-04-08T21:59:00.000Z", "completeDate": "2018-04-08T17:55:14.467Z", "originBoardId": 114 }, { "id": 1008, "state": "closed", "name": "2018 Sprint 06 SDK", "startDate": "2018-03-11T22:18:04.396Z", "endDate": "2018-03-25T22:18:00.000Z", "completeDate": "2018-03-25T21:52:36.683Z", "originBoardId": 216 } ], "comment": { "comments": [ { "id": "435808", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~mrahman] Try this:\r\n{code:js}\r\nvar win = Ti.UI.createWindow({ backgroundColor: 'gray' });\r\n\r\nTi.Android.currentActivity.addEventListener('newintent', function (e) {\r\n var data = e.intent.getData();\r\n\r\n alert(`data: ${data}`);\r\n});\r\n\r\nwin.open();\r\n{code}\r\n\r\nEverything looks great, but they should be using the {{newintent}} event.", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-03-21T18:01:08.000+0000", "updated": "2018-03-21T18:01:48.000+0000" }, { "id": "440126", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:49:21.000+0000", "updated": "2018-08-06T17:49:21.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }