{ "id": "174616", "key": "MOD-2562", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "20952", "name": "Release 9.0.0", "archived": false, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-03-09T21:02:36.000+0000", "created": "2020-01-08T15:37:50.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2020-03-09T21:02:36.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": [], "description": "h5.Description\r\n\r\nWhen using ti.webdialog in an OAuth2 flow, the webdialog needs to be closed after the flow is complete. Chrome Custom Tabs does not support closing the tab programatically, but we can achieve these by setting the following intent flags on the CustomTabsIntent \r\n\r\n{code}\r\nIntent.FLAG_ACTIVITY_NO_HISTORY\r\nIntent.FLAG_ACTIVITY_NEW_TASK\r\n{code}\r\n\r\nWe could do this by allowing a {{intentFlags}} property to the open call, which accepts the flag options provided by Titanium.Android.FLAG_* constants", "attachment": [], "flagged": false, "summary": "WebDialog: Support passing intent flags to open method on Android", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": null, "comment": { "comments": [ { "id": "453507", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "I initially though of having intentFlags as an array, but the Ti.Android.createIntent call accepts flags as a bitwise or, so I think I will match that. For example\r\n\r\n{code}\r\nwebdialog.open({\r\n\turl,\r\n\tintentFlags: Ti.Android.FLAG_ACTIVITY_NO_HISTORY | Ti.Android.FLAG_ACTIVITY_NEW_TASK\r\n});\r\n{code}\r\n", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-01-08T15:54:37.000+0000", "updated": "2020-01-08T15:54:37.000+0000" }, { "id": "453508", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "PR here: https://github.com/appcelerator-modules/titanium-web-dialog/pull/14\r\n\r\nRather than add to workloads I'm going to leave this open and we can review and get it in at a later date", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-01-08T16:40:01.000+0000", "updated": "2020-01-08T16:40:01.000+0000" }, { "id": "454428", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nVerified the fix with module Ver. 2.0.0.\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-02-25T17:07:10.000+0000", "updated": "2020-02-25T17:07:10.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }