Pop-up is eventually displayed, try to use selenium methods but is not supported by appium

Guys, help!
I’m trying to accomplish the programming for the situation below:

I need to click on “ok” in an alert message in the app, I was able to map the possible view screens. But I can not play on the stage.

It is displayed the moment X users are online in the app, I can not validate since the app is used by ANY company.

I need to perform a method, if it appears to click on “ok” otherwise go to the next step.

If I understand you properly, you want to check for the existence of an element, if its there click-it, if not, move on.

You can use findElements (as opposed to findElement). findElements returns a List. If the size of the list = 0, then the element is not there and you move on to the next step. If its there, click it.