{ "id": "169216", "key": "TIMOB-25046", "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": "2017-08-15T22:07:59.000+0000", "created": "2017-08-01T09:26:31.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" }, { "id": "19572", "description": "Important fixes for 6.1.0", "name": "Release 6.1.1", "archived": false, "released": true, "releaseDate": "2017-06-16" }, { "id": "19870", "description": "", "name": "Release 6.1.2", "archived": false, "released": true, "releaseDate": "2017-08-03" } ], "issuelinks": [ { "id": "55726", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "165795", "key": "TIMOB-24375", "fields": { "summary": "iOS: Implement \"Peek & Pop\" for Map view Annotation", "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": "Medium", "id": "3" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-08-15T23:17:41.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": "h6.Reproduce\r\n1. Run the simple app attached in an alloy project\r\n2. On force touch of \"Open Window\" button.\r\n3. Another window should be opened. But on force touch of button, peek event is not getting fired. \r\n\r\nh6.Note\r\nSame issue with 6.1.0.GA 6.1.1.GA\r\nBut working well on 6.0.3.GA", "attachment": [ { "id": "62965", "filename": "index.js", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2017-08-01T09:26:08.000+0000", "size": 3416, "mimeType": "text/javascript" }, { "id": "62963", "filename": "index.tss", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2017-08-01T09:26:11.000+0000", "size": 136, "mimeType": "application/octet-stream" }, { "id": "62961", "filename": "index.xml", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2017-08-01T09:26:14.000+0000", "size": 90, "mimeType": "text/xml" }, { "id": "62964", "filename": "pop.js", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2017-08-01T09:26:08.000+0000", "size": 113, "mimeType": "text/javascript" }, { "id": "62962", "filename": "pop.tss", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2017-08-01T09:26:11.000+0000", "size": 22, "mimeType": "application/octet-stream" }, { "id": "62960", "filename": "pop.xml", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2017-08-01T09:26:14.000+0000", "size": 1482, "mimeType": "text/xml" } ], "flagged": false, "summary": "iOS: Peek and Pop functionality not working with 6.1.0 G.A and above", "creator": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "subtasks": [], "reporter": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "environment": "SDK 6.1.0 6.1.1 and 6.1.2", "comment": { "comments": [ { "id": "426306", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I am able to reproduce the issue on 6.1.x, simplified test-case:\r\n{code:js}\r\nif (!Ti.UI.iOS.forceTouchSupported) {\r\n alert('NOT SUPPORTED!');\r\n}\r\n\r\nvar actions = [];\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: \"white\"\r\n});\r\n\r\n// The actions to be added to the preview context.\r\nvar action = Ti.UI.iOS.createPreviewAction({\r\n title: \"Directions\",\r\n style: Ti.UI.iOS.PREVIEW_ACTION_STYLE_DEFAULT\r\n});\r\n\r\nvar actionCall = Ti.UI.iOS.createPreviewAction({\r\n title: \"Call\",\r\n style: Ti.UI.iOS.PREVIEW_ACTION_STYLE_DEFAULT\r\n});\r\n\r\naction.addEventListener(\"click\", function(e) {\r\n alert(\"Title: \" + e.title + \" / Style: \" + e.style + \" / Index: \" + e.index);\r\n});\r\n\r\nactionCall.addEventListener(\"click\", function(e) {\r\n alert(\"Title: \" + e.title + \" / Style: \" + e.style + \" / Index: \" + e.index);\r\n});\r\n\r\nvar actionProfile = Ti.UI.iOS.createPreviewAction({\r\n title: \"Call Profile\",\r\n style: Ti.UI.iOS.PREVIEW_ACTION_STYLE_DEFAULT\r\n});\r\n\r\nactionProfile.addEventListener(\"click\", function(e) {\r\n alert(\"Title: \" + e.title + \" / Style: \" + e.style + \" / Index: \" + e.index);\r\n});\r\n\r\nactions.push(action);\r\nactions.push(actionCall);\r\nactions.push(actionProfile);\r\n\r\nvar pview = Ti.UI.createView({\r\n height: 100,\r\n backgroundColor: 'white'\r\n});\r\n\r\npview.add(Ti.UI.createLabel({\r\n text: 'Address\\n Title',\r\n color: 'black'\r\n}));\r\n\r\n// Create the preview context\r\nvar context = Ti.UI.iOS.createPreviewContext({\r\n actions: actions, // Can have both Ti.UI.iOS.PreviewAction + Ti.UI.iOS.PreviewActionGroup\r\n contentHeight: 100, // When unspecified, we use the available height\r\n preview: pview\r\n});\r\n\r\ncontext.addEventListener(\"peek\", function(e) {\r\n Ti.API.warn('in peek');\r\n});\r\n\r\ncontext.addEventListener(\"pop\", function(e) {\r\n Ti.API.warn('in pop');\r\n});\r\n\r\n// Assign the preview context\r\nvar button = Ti.UI.createButton({\r\n previewContext: context, // Will be ignored on unsupported devices\r\n title: \"Open Window!\",\r\n backgroundColor: \"#A6171C\",\r\n width: 200,\r\n height: 50,\r\n tintColor: \"#fff\"\r\n});\r\n\r\nwin.add(button);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-08-09T06:31:05.000+0000", "updated": "2017-08-09T06:31:05.000+0000" }, { "id": "426307", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "The issue was introduced by the fixing the analyser-warnings ([this line|https://github.com/appcelerator/titanium_mobile/commit/46e83b20895f110fbf0b6adcf93edd84968c4ec9#diff-e1073c3ff26a35a5c8da1098e5020788R87]). PR ready later today. Might be worth a 6.1.3!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-08-09T06:54:40.000+0000", "updated": "2017-08-09T06:54:40.000+0000" }, { "id": "426308", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/9289\r\nPR (6_2_X): https://github.com/appcelerator/titanium_mobile/pull/9290", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-08-09T07:08:25.000+0000", "updated": "2017-08-09T07:08:25.000+0000" }, { "id": "426717", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Passed FR.\r\nFix found in SDK versions:\r\n6.2.0.v20170815151205\r\n7.0.0.v20170815144954", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-15T22:06:17.000+0000", "updated": "2017-08-15T23:17:29.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }