Using Appium to test Ionic

QA is trying to get some automation set up for our Ionic apps using Appium (
We realized adding in ids to everything seems to work better.

The problem is for an AlertController trying to click a button on these screens seems to have problems.
I can’t see a way to add an ID to these buttons either.

Any idea?