{ "id": "172808", "key": "TIMOB-26816", "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": [], "resolution": null, "resolutiondate": null, "created": "2019-01-03T16:21:26.000+0000", "priority": null, "labels": [ "accessibility", "accessibilityLabel", "appium", "engSchedule", "ios", "simulator" ], "versions": [], "issuelinks": [ { "id": "57267", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "172807", "key": "TIMOB-26706", "fields": { "summary": "Android: AccessibilityLabel is on wrong element", "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": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-11-23T18:08:12.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "Here is the titanium app: [https://github.com/joshmocekMovista/accessLabelBug|http://example.com]\r\n\r\nOnce you build the app you will click on the elements. If you do this in Android the \"Access Label\" will change depending on what you click. In iOS it never changes and stays at \"Nothing\". Here is the 'doClick' function that is a click event on certain elements in the XML:\r\n\r\n{code:javascript}\r\nfunction doClick(e) {\r\n\t// This doesn't give us Accessibility Label not sure if this is a problem\r\n\tconsole.info('JSON.stringify(e):\\n' + JSON.stringify(e));\r\n\tchangeIndicatorLabel(String(e.source.accessibilityLabel));\r\n\tchangeIDLabel(String(e.source.id));\r\n\tif (e.source.id == 'view2' || e.source.id == 'heyLabel') alert('You clicked view2 or heyLabel');\r\n}\r\n{code}\r\n\r\nYou will also notice when you build the app that the console in the function returns the object 'e', but it is missing the 'accessibilityLabel' property.", "attachment": [ { "id": "66051", "filename": "index.js", "author": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-03T16:17:16.000+0000", "size": 796, "mimeType": "text/javascript" }, { "id": "66050", "filename": "index.tss", "author": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-03T16:17:16.000+0000", "size": 212, "mimeType": "application/octet-stream" }, { "id": "66053", "filename": "index.xml", "author": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-03T16:17:16.000+0000", "size": 1324, "mimeType": "text/xml" }, { "id": "66103", "filename": "Screen Shot 2019-01-21 at 1.15.46 PM.png", "author": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-21T19:17:45.000+0000", "size": 113656, "mimeType": "image/png" }, { "id": "66113", "filename": "Screen Shot 2019-01-28 at 2.06.19 PM.png", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-01-28T11:15:50.000+0000", "size": 39157, "mimeType": "image/png" }, { "id": "66052", "filename": "tiapp.xml", "author": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-03T16:17:16.000+0000", "size": 4230, "mimeType": "text/xml" } ], "flagged": false, "summary": "[iOS] AccessibilityLabel isn't available in app", "creator": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS Simulator\r\nTitanium SDK 7.5.0 & 7.1.1\r\nAccessibilityLabel", "comment": { "comments": [ { "id": "445162", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\nThanks for sharing with us. What's your Xcode version? It would be helpful if you can share the console logs here for better investigation.", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-01-10T06:52:38.000+0000", "updated": "2019-01-10T06:52:38.000+0000" }, { "id": "445185", "author": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have 9 and 10\r\n\r\nImageView:\r\n{code:java}\r\n{\r\n\"x\":35.5,\r\n\"y\":24.5,\r\n\"bubbles\":true,\r\n\"type\":\"click\",\r\n\"source\":{\r\n\"animating\":false,\r\n\"paused\":false,\r\n\"reverse\":false,\r\n\"stopped\":true,\r\n\"autorotate\":true,\r\n\"duration\":200,\r\n\"horizontalWrap\":true,\r\n\"visible\":true,\r\n\"touchEnabled\":true,\r\n\"width\":50,\r\n\"height\":50,\r\n\"image\":\"/images/myimage.png\",\r\n\"id\":\"scrollimage\",\r\n\"top\":0\r\n},\r\n\"cancelBubble\":false\r\n}\r\n{code}\r\n\r\nHello, World:\r\n\r\n{code:java}\r\n{\r\n\"x\":60.5,\r\n\"y\":24.5,\r\n\"bubbles\":true,\r\n\"type\":\"click\",\r\n\"source\":{\r\n\"horizontalWrap\":true,\r\n\"visible\":true,\r\n\"touchEnabled\":true,\r\n\"height\":50,\r\n\"color\":\"#000\",\r\n\"id\":\"label1\",\r\n\"width\":200,\r\n\"text\":\"Hello, World\",\r\n\"top\":10\r\n},\r\n\"cancelBubble\":false\r\n}\r\n{code}\r\n\r\nHey\r\n{code:java}\r\n{\"x\":61.5,\"y\":12.5,\"bubbles\":true,\"type\":\"click\",\"source\":{\"horizontalWrap\":true,\"visible\":true,\"touchEnabled\":true,\"color\":\"#000\",\"id\":\"labelInView\",\"width\":\"SIZE\",\"height\":\"SIZE\",\"text\":\"Label in View\"},\"cancelBubble\":false}\r\n{code}\r\n\r\n\r\n\r\n\r\n", "updateAuthor": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-10T16:19:33.000+0000", "updated": "2019-01-10T16:19:33.000+0000" }, { "id": "445251", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Thanks for providing this. We are working on this. For testing purpose, can you please run the following code and let us know how it goes. Double-press on the label to see the output.\r\n{code}\r\nvar window = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n \r\nvar scroll1 = Ti.UI.createScrollView({\r\n backgroundColor : 'red',\r\n accessibilityLabel : 'This is ScrollView1',\r\n accessibilityValue : 'Value1',\r\n accessibilityHint : 'hint 1',\r\n height : 200,\r\n top : 0\r\n});\r\nvar label1 = Ti.UI.createLabel({\r\n text : 'Label Text',\r\n accessibilityLabel : 'Label on first Scrollview'\r\n});\r\nscroll1.add(label1);\r\n \r\nwindow.add(scroll1);\r\n \r\nwindow.open();\r\n{code} ", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-01-13T11:51:51.000+0000", "updated": "2019-01-13T11:51:51.000+0000" }, { "id": "445344", "author": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "body": "There is no click event in the code you gave me so I don't get anything. If I add it to the code I get this:\r\n\r\n{code:java}\r\n{\r\n \"x\":1.5,\r\n \"y\":15,\r\n \"bubbles\":true,\r\n \"type\":\"click\",\r\n \"source\":{\r\n \"horizontalWrap\":true,\r\n \"visible\":true,\r\n \"touchEnabled\":true,\r\n \"text\":\"Label Text\"\r\n },\r\n \"cancelBubble\":false\r\n}\r\n{code}\r\n\r\n\r\nHere is the code I used:\r\n\r\n{code:javascript}\r\nvar window = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\r\n\r\nvar scroll1 = Ti.UI.createScrollView({\r\n\tbackgroundColor: 'red',\r\n\taccessibilityLabel: 'This is ScrollView1',\r\n\taccessibilityValue: 'Value1',\r\n\taccessibilityHint: 'hint 1',\r\n\theight: 200,\r\n\ttop: 0\r\n});\r\nvar label1 = Ti.UI.createLabel({\r\n\ttext: 'Label Text',\r\n\taccessibilityLabel: 'Label on first Scrollview',\r\n});\r\nlabel1.addEventListener('click', function(e) {\r\n\tconsole.info('JSON.stringify(e):\\n' + JSON.stringify(e));\r\n});\r\nscroll1.add(label1);\r\nwindow.add(scroll1);\r\nwindow.open();\r\n{code}\r\n", "updateAuthor": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-15T17:47:26.000+0000", "updated": "2019-01-15T17:48:09.000+0000" }, { "id": "445511", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": " Can you please try the following: To enable Accessibility Inspector on iOS simulator:\r\n\r\nOpen Settings on the simulator.\r\nClick General, then Accessibility.\r\nSwitch Accessibility Inspector to on.\r\n\r\nPlease test again and let us know how it goes,\r\n\r\nFor details please visit this [link|https://docs.axway.com/bundle/Titanium_SDK_allOS_en/page/accessibility.html].\r\n\r\n", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-01-21T11:17:59.000+0000", "updated": "2019-01-21T11:17:59.000+0000" }, { "id": "445517", "author": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "body": " No, it did not show anything.\r\n!Screen Shot 2019-01-21 at 1.15.46 PM.png|thumbnail! ", "updateAuthor": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-21T19:18:09.000+0000", "updated": "2019-01-21T19:18:09.000+0000" }, { "id": "445522", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Thanks for your feedback. Did you apply all the steps accordingly from [here|https://docs.axway.com/bundle/Titanium_SDK_allOS_en/page/accessibility.html?]?", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-01-22T09:24:30.000+0000", "updated": "2019-01-22T09:24:30.000+0000" }, { "id": "445644", "author": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Yes", "updateAuthor": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-24T22:34:06.000+0000", "updated": "2019-01-24T22:34:06.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }