I try to write tests for an app, which shows iOS native alert for Location (This app would like to use your current location). I tried this code
driver.switchTo().alert.accept();
This actually works for other alerts, but not for native ones.
Also I noticed, that since 2nd time I run a test(even there is nothing but an sysout), it fails because of SessionNotCreatedException, but if I remove that alert from app, everything is ok.
I use Appium 1.3.4. Thanks in advance.