Best Practices for Adding Accessibility IDs in Native Apps

Hi all!

Want to make my companies native apps easily to be automated with Appium. Currently we have no accessibility IDs for all our platforms (iPhone, iPad, Android). This is mostly a problem for automating iOS apps as unique ids are not created unless we write themt into it. Searching the web I could not find any good documentation for developing accessibility IDs into native apps. I am looking for best practices when it comes to adding accessibility IDs into our native apps. Is there a certain nomenclature being used? Should I have accessibility ID string separate from the code/is there a certain file structure that is best for accessibility IDs? How unique should they be? What are some elements that absolutely need Accessibility IDs and what elements do not? Looking for answers to questions along those lines. Thank you!