Include Safari In Web views
It indicates Appium that you are trying to automate safari so it will switch to browser it self.
Add a cap includeSafariInWebviews which signals to the remote debugger to add safari apps to the available list.
capabilities.setCapability("includeSafariInWebviews", true);