From 33d6da97a96fbcc72d3afff0d2635ff62312718c Mon Sep 17 00:00:00 2001 From: "Robert (Jamie) Munro" Date: Wed, 19 Jun 2013 12:19:23 +0100 Subject: [PATCH 1/5] Fixes to plugin.xml tested on cordova 2.8 * Be consistent with com.phonegap.plugin not com.phonegap.plugins --- plugin.xml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/plugin.xml b/plugin.xml index c76b86b..528b60d 100644 --- a/plugin.xml +++ b/plugin.xml @@ -1,7 +1,7 @@ - Local Notification @@ -11,7 +11,7 @@ - @@ -28,28 +28,28 @@ + value="com.phonegap.plugin.localnotification.LocalNotification" /> + target-dir="src/com/phonegap/plugin/localnotification" /> + target-dir="src/com/phonegap/plugin/localnotification" /> + target-dir="src/com/phonegap/plugin/localnotification" /> + target-dir="src/com/phonegap/plugin/localnotification" /> + target-dir="src/com/phonegap/plugin/localnotification" /> + string="LocalNotification" /> - - + + From f2c4b2c1bfed118e317637f05dc90445e80e0de1 Mon Sep 17 00:00:00 2001 From: "Robert (Jamie) Munro" Date: Wed, 19 Jun 2013 18:01:29 +0100 Subject: [PATCH 2/5] Match widgets, not just cordova in xml path --- plugin.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.xml b/plugin.xml index 528b60d..fda8fc3 100644 --- a/plugin.xml +++ b/plugin.xml @@ -26,7 +26,7 @@ - + From 1d91a7ed8804a21fa1f5e3b1690bf024dc06c720 Mon Sep 17 00:00:00 2001 From: "Robert (Jamie) Munro" Date: Fri, 12 Jul 2013 12:52:44 +0100 Subject: [PATCH 3/5] Add section to modify config.xml --- plugin.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin.xml b/plugin.xml index fda8fc3..2066354 100644 --- a/plugin.xml +++ b/plugin.xml @@ -49,6 +49,10 @@ + + + + From 876d2d6e56788bafda088bc0a6f05aae5aeebccc Mon Sep 17 00:00:00 2001 From: "Robert (Jamie) Munro" Date: Fri, 12 Jul 2013 12:49:28 +0100 Subject: [PATCH 4/5] Add description and engines tags --- plugin.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugin.xml b/plugin.xml index 2066354..780dbac 100644 --- a/plugin.xml +++ b/plugin.xml @@ -5,6 +5,18 @@ version="1.0.0"> Local Notification + + Notify a user at a pre-determined time using LocalNotifications on iOS or + alarms on Android. + + + + + + From 9b5ef343798b70c2ac86eaabd91a4ad99297a376 Mon Sep 17 00:00:00 2001 From: "Robert (Jamie) Munro" Date: Tue, 18 Jun 2013 16:23:53 +0100 Subject: [PATCH 5/5] Fix README Codeblocks need a clear newline before they start --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b24866a..97043d7 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Great post explaining [how to use pluginstall](http://blog.chariotsolutions.com/ 1. Install via _pluginstall_ 2. Include LocalNotification.js in index.html 3. Add the following code to AppDelegate.m -``` + - (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification { UIApplicationState state = [application applicationState]; @@ -49,7 +49,7 @@ Great post explaining [how to use pluginstall](http://blog.chariotsolutions.com/ application.applicationIconBadgeNumber = 0; } } -``` + 4. Start using window.plugins.localnotification ## Information