Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-26816

[iOS] AccessibilityLabel isn't available in app

    Details

      Description

      Here is the titanium app: https://github.com/joshmocekMovista/accessLabelBug

      Once 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:

      function doClick(e) {
      	// This doesn't give us Accessibility Label not sure if this is a problem
      	console.info('JSON.stringify(e):\n' + JSON.stringify(e));
      	changeIndicatorLabel(String(e.source.accessibilityLabel));
      	changeIDLabel(String(e.source.id));
      	if (e.source.id == 'view2' || e.source.id == 'heyLabel') alert('You clicked view2 or heyLabel');
      }
      

      You 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.

        Attachments

        1. index.js
          0.8 kB
        2. index.tss
          0.2 kB
        3. index.xml
          1 kB
        4. Screen Shot 2019-01-21 at 1.15.46 PM.png
          Screen Shot 2019-01-21 at 1.15.46 PM.png
          111 kB
        5. Screen Shot 2019-01-28 at 2.06.19 PM.png
          Screen Shot 2019-01-28 at 2.06.19 PM.png
          38 kB
        6. tiapp.xml
          4 kB

          Issue Links

            Activity

              People

              • Assignee:
                ahutton Alan Hutton
                Reporter:
                josh.mocek josh.mocek
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-21028
                    Sync status:
                    PENDING
                    Last received:
                    Last sent:

                    Git Integration