Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24171] iOS: AccessibilityLabel or AccessibilityValue does not work.

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2019-09-02T15:37:35.000+0000
Affected Version/stitanium 5.0.9, Release 8.0.2
Fix Version/sRelease 8.2.0
ComponentsiOS
Labelsaccessibility, engSchedule, ios
ReporterChristy Thomas
AssigneeVijay Singh
Created2016-11-09T17:48:15.000+0000
Updated2021-01-04T11:39:42.000+0000

Description

If you create an ImageView in an xml file and then in the controller try to set accessibilityLabel or accessibilityValue it will not take effect. You can verify this with my example code attached and run the app with Accessibility Inspector turned on. You can click on the text and see the accessibility label being set, but not the ImageView. This is affecting our ability to run automated tests using the accessibility information.

Attachments

FileDateSize
app.zip2016-11-09T17:48:12.000+00009763108

Comments

  1. Brenton House 2017-03-23

    Any news on this?
  2. Vijay Singh 2019-08-03

    PR - https://github.com/appcelerator/titanium_mobile/pull/11109 Test Case -
       var win = Ti.UI.createWindow({
           backgroundColor: '#fff'
       });
       
       var label = Ti.UI.createLabel({
         top: 50,
         text: 'Label for Test',
         accessibilityLabel: 'New Text',
         accessibilityValue: 'New Value',
         accessibilityHint: 'New Hint',
         accessibilityHidden: true
       });
       var btn = Ti.UI.createButton({
           title: 'Get Accessibility Info'
       });
       
       btn.addEventListener('click', function() {
       
           Ti.API.info('Accessibility Label is:' +label.accessibilityLabel);
           Ti.API.info('Accessibility Value is:' +label.accessibilityValue);
           Ti.API.info('Accessibility Hint is:' +label.accessibilityHint);
           Ti.API.info('Accessibility Hidden is:' +label.accessibilityHidden);
       });
       
       win.add(label);
       win.add(btn);
       win.open();
       
  3. Satyam Sekhri 2019-08-15

    FR passed. Accessibility label, value and hint returned successfully in both classic and alloy apps. Waiting on Jenkins build to pass.
  4. Samir Mohammed 2019-08-23

    [~vijaysingh] please could you add a PR for 8_3_X?
  5. Christopher Williams 2019-08-29

    merged to master (8.2.0)
  6. Samir Mohammed 2019-09-02

    *Closing ticket*, fix verified in SDK version 8.2.0.v20190902041145. Note* fix will be merged into 8_3_X at a later date. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile/pull/11109

JSON Source