This is working spot on Android,,,
But for IOS I tired below things to go back to App..
//Using xpath -
driver.findElement(By.xpath("//UIAButton[@name ='back to app']"));
//for this I'm getting instruments crash error and some time null pointer excpetions
//this is doing nothing....
Any suggestions for IOS to go back to app