{ "id": "174922", "key": "TIMOB-27853", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "20950", "name": "Release 9.1.0", "archived": false, "released": true, "releaseDate": "2020-08-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-07-30T19:30:57.000+0000", "created": "2020-04-17T21:49:54.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "griffin-app", "ios" ], "versions": [], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-07-30T19:30:57.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Add ability to detect if a screenshot was taken on iOS. Probably using UIApplicationUserDidTakeScreenshotNotification", "attachment": [], "flagged": false, "summary": "Add ability to detect that screenshot was taken on iOS", "creator": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "455265", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I think we can create event listener 'screenshotcaptured'. e.g-\r\n{code:java}\r\nTi.App.iOS.addEventListener('screenshotcaptured', function() {\r\n Ti.API.info('screenshotcaptured');\r\n});\r\n{code}\r\n", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-04-28T01:02:01.000+0000", "updated": "2020-04-28T01:02:01.000+0000" }, { "id": "455285", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR - https://github.com/appcelerator/titanium_mobile/pull/11665\r\n\r\nTest Case -\r\n{code:java}\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nwin.open();\r\n\r\nTi.App.iOS.addEventListener('screenshotcaptured', function() {\r\n Ti.API.info('screenshot captured');\r\n});\r\n{code}\r\n", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-04-28T19:39:37.000+0000", "updated": "2020-04-28T19:41:28.000+0000" }, { "id": "455286", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "perhaps something like this for Android: https://stackoverflow.com/a/29624090/5193915", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-04-28T19:46:52.000+0000", "updated": "2020-04-28T19:46:52.000+0000" }, { "id": "455291", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FYI: On Android, you can *prevent* someone from taking a screenshot of a {{Window}} by setting its \"flagSecure\" property to {{true}}.\r\nhttps://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Window-property-flagSecure\r\n\r\nThere is no official API on Google's end that can detect when a screenshot is taken though. You can only \"guess\" at it. Such as watching a directory where the screenshot file might go like Michael mentioned. But this is not a full-proof solution. Flagging the window that prevents the screenshot is the way to go if this is the behavior you're after.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-04-29T00:06:00.000+0000", "updated": "2020-04-29T00:13:33.000+0000" }, { "id": "455298", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed, waiting on Jenkins build", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-04-29T14:18:03.000+0000", "updated": "2020-04-29T14:18:03.000+0000" }, { "id": "455317", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master for 9.1.0 target", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2020-04-30T17:56:51.000+0000", "updated": "2020-04-30T17:56:51.000+0000" }, { "id": "456294", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nMac OS: 10.15.4\r\nSDK: 9.1.0.v20200727104531\r\nAppc CLI: 8.1.0-master.7\r\nJDK: 11.0.4\r\nNode: 10.17.0\r\nStudio: 6.0.0.202005141803\r\nXcode: 12.0 beta\r\nDevice: iPhone X(v13.4), iPhone 7Plus(v12.4.5), iOS simulator 14.0 beta, 13.5", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-07-30T19:30:57.000+0000", "updated": "2020-07-30T19:30:57.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }