You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by he...@apache.org on 2014/01/14 21:55:15 UTC
[1/2] git commit: FFOS description added
Updated Branches:
refs/heads/dev a1b834edb -> 15ac14eac
FFOS description added
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/commit/8d7ad69a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/tree/8d7ad69a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/diff/8d7ad69a
Branch: refs/heads/dev
Commit: 8d7ad69a7b5aed7d1fbbdfde94e8bb852d55e796
Parents: a1b834e
Author: Piotr Zalewa <pi...@zalewa.info>
Authored: Fri Jan 10 15:12:37 2014 +0100
Committer: Herm Wong <he...@gmail.com>
Committed: Tue Jan 14 12:54:48 2014 -0800
----------------------------------------------------------------------
doc/index.md | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/blob/8d7ad69a/doc/index.md
----------------------------------------------------------------------
diff --git a/doc/index.md b/doc/index.md
index 472bd96..9375f72 100644
--- a/doc/index.md
+++ b/doc/index.md
@@ -25,6 +25,23 @@ This plugin provides access to some native dialog UI elements.
cordova plugin add org.apache.cordova.dialogs
+### Firefox OS Quirks
+
+Edit generated __platforms/firefoxos/www/manifest.webapp__ and add permissions field as
+described in [Manifest Docs](https://developer.mozilla.org/en-US/Apps/Developing/Manifest#permissions).
+__WARNING__: There is currently a need to repeat this step every time the code
+is prepared
+
+ "permissions": {
+ "desktop-notification": {
+ "description": "Describe why you need to enable notifications"
+ }
+ }
+
+Edit __www/index.html__ and add following in `head` section:
+
+ <link rel="stylesheet" type="text/css" href="css/notification.css" />
+
## Methods
- `navigator.notification.alert`
@@ -67,6 +84,7 @@ function, which is typically less customizable.
- Amazon Fire OS
- Android
- BlackBerry 10
+- Firefox OS
- iOS
- Tizen
- Windows Phone 7 and 8
@@ -80,6 +98,9 @@ function, which is typically less customizable.
- Both `alert` and `confirm` are non-blocking calls, results of which are only available asynchronously.
+### Firefox OS Quirks:
+
+Both native-blocking `window.alert()` and non-blocking `navigator.notification.alert()` are available.
## navigator.notification.confirm
@@ -123,6 +144,7 @@ indexing, so the value is `1`, `2`, `3`, etc.
- Amazon Fire OS
- Android
- BlackBerry 10
+- Firefox OS
- iOS
- Tizen
- Windows Phone 7 and 8
@@ -136,6 +158,9 @@ indexing, so the value is `1`, `2`, `3`, etc.
- Calls to `alert` and `confirm` are non-blocking, so the result is only available asynchronously.
+### Firefox OS Quirks:
+
+Both native-blocking `window.confirm()` and non-blocking `navigator.notification.confirm()` are available.
## navigator.notification.prompt
@@ -181,6 +206,7 @@ contains the following properties:
- Amazon Fire OS
- Android
+- Firefox OS
- iOS
### Android Quirks
@@ -189,6 +215,10 @@ contains the following properties:
- On Android 3.0 and later, buttons are displayed in reverse order for devices that use the Holo theme.
+### Firefox OS Quirks:
+
+Both native-blocking `window.prompt()` and non-blocking `navigator.notification.prompt()` are available.
+
## navigator.notification.beep
The device plays a beep sound.
[2/2] git commit: no need to recreate the manifest.webapp file after
each `cordova prepare`
Posted by he...@apache.org.
no need to recreate the manifest.webapp file after each `cordova prepare`
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/commit/15ac14ea
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/tree/15ac14ea
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/diff/15ac14ea
Branch: refs/heads/dev
Commit: 15ac14eacbd1e494b2fc49a271f705355720f57a
Parents: 8d7ad69
Author: Piotr Zalewa <pi...@zalewa.info>
Authored: Fri Jan 10 19:04:11 2014 +0100
Committer: Herm Wong <he...@gmail.com>
Committed: Tue Jan 14 12:55:06 2014 -0800
----------------------------------------------------------------------
doc/index.md | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/blob/15ac14ea/doc/index.md
----------------------------------------------------------------------
diff --git a/doc/index.md b/doc/index.md
index 9375f72..1cb3e09 100644
--- a/doc/index.md
+++ b/doc/index.md
@@ -27,10 +27,9 @@ This plugin provides access to some native dialog UI elements.
### Firefox OS Quirks
-Edit generated __platforms/firefoxos/www/manifest.webapp__ and add permissions field as
-described in [Manifest Docs](https://developer.mozilla.org/en-US/Apps/Developing/Manifest#permissions).
-__WARNING__: There is currently a need to repeat this step every time the code
-is prepared
+Create __www/manifest.webapp__ as described in
+[Manifest Docs](https://developer.mozilla.org/en-US/Apps/Developing/Manifest).
+Add permisions:
"permissions": {
"desktop-notification": {