# ti.webdialog

> Use the SFSafariViewController (iOS) and Chrome Pages (Android) in Titanium.

- Source: https://titaniumsdk.com/modules/ti.webdialog
- Module id: `ti.webdialog`
- Repository: https://github.com/tidev/titanium-web-dialog
- Curation: tidev

## Latest release, per platform

- android: 2.5.0, requires Titanium SDK 12.8.0 or later
- ios: 4.0.0, requires Titanium SDK 12.0.0 or later

## Install

Declare it in `tiapp.xml`. The CLI resolves and downloads it on the next build:

```xml
<modules>
  <module platform="android" version="2.5.0">ti.webdialog</module>
  <module platform="ios" version="4.0.0">ti.webdialog</module>
</modules>
```

## API, at 2.5.0

- `AuthenticationSessionCallback`: The callback which is called when the session is completed successfully or canceled by user.
- `Modules.WebDialog`: Allows a Titanium application to use the Safari Controller (iOS) and Chrome Tabs (Android) to create an embedded browser.
- `Modules.WebDialog.AuthenticationSession`: Authenticate a user with a web service, even if the web service is run by a third party.

---

- This corpus documents Titanium SDK 13.4.1. Anything here that does not name a version describes 13.4.1.
- Titanium is maintained by TiDev. The Appcelerator toolchain is retired: there is no `appc` CLI, no Appcelerator Studio and no hosted build service. The supported CLI is `titanium` on npm, invoked as `ti`.

