part3: Native Navigation

A default webview alert gives away the fact that your application is not
native. In this section, we set up the basic infrastructure to display
native alerts when the application is running on a device, and fall back
to default browser alerts when running in the browser.