


However this only happens once the last Incognito Tab has been closed. The way Incognito works is that it removes all trace of what you’re doing once you’re finished using Incognito. The reason for this is to do with security. The biggest restriction of this feature is that you can’t launch an Incognito Tab to a certain URL, you can only launch a new Incognito Tab and then let the user type their own search term. This is a good thing if the user has other legitimate browsers installed, however if you are putting this code in your app beware that any Android app on the user’s device could be triggered. Which browser is chosen is based on Android - so if the user’s default browser is not Chrome that would be picked instead. If the user has other browsers installed that answer to this Intent, they could be launched instead. The user hasn’t signed Chrome’s Terms of Service.Įxpanding on the last point, it seemed like a bad user experience for them to press an “Launch Incognito Search” button in some app and then, while expecting to start private browsing they be given Chromes Terms of Service.The user is unable to use Chrome Incognito (Incognito can be disabled for child accounts or work accounts).Just because the user has Chrome installed doesn’t mean that this Intent will be answered - and firing an Intent that Android can’t handle is a easy way to throw an exception. There are however two complicating factors to be aware of. Intent intent = new Intent ( ".incognito.OPEN_PRIVATE_TAB" ) startActivity ( intent )
