How can we bypass location pop-ups in iOS devices?

Can we bypass location pop-ups in iOS devices?

Hi Miro,

You need to pass below capability in your script:

"autoAcceptAlerts" : true;

I also had the same issue with my Java Appium project but the capability was not resolving the problem because the pop up has three options: Allow Once, Allow While Using App, Don’t Allow.

The resolution was to add the following code:

driver.setSetting("defaultActiveApplication", "com.apple.springboard");
driver.findElement(By.xpath("//*[@name='Allow Once']")).click();
driver.setSetting("defaultActiveApplication", "auto");