Skip to content

Commit d3ad207

Browse files
committed
fix example url, add android note in README
1 parent a6c1cb1 commit d3ad207

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ Use the native `SFSafariViewController` (iOS) and `Chrome Pages` (Android) withi
1414
The iOS part of this module is based on Ti.SafariDialog, which has been deprecated for a cross-platform solution. All API's of Ti.SafariDialog
1515
still work here and have been extended by more features over time.
1616

17+
## Android Note
18+
In order to use the `close` event on Android it is recommended to have a short delay between `var WebDialog = require('ti.webdialog');` and `WebDialog.open({})`. Otherwise it might not fire the `close` event.
19+
1720
## API's
1821

1922
### Top-Level

example/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ win.add(btnOpenDialog);
1212

1313
btnOpenDialog.addEventListener('click', function () {
1414
WebDialog.open({
15-
url: 'https://appcelerator.com',
15+
url: 'https://tidev.io/',
1616
title: 'Hello World',
1717

1818
// iOS 10+

0 commit comments

Comments
 (0)