From 50fc3481c6e0af4f1b117c34053d41cdc0748c0e Mon Sep 17 00:00:00 2001 From: Erik Johnson Date: Mon, 17 Feb 2014 12:38:01 -0600 Subject: [PATCH 1/2] Pass message_priority to NMA since it is supported This allows for message priority to be supported in NMA. --- push.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/push.cpp b/push.cpp index 8bc65bb..e17fc7b 100755 --- a/push.cpp +++ b/push.cpp @@ -317,6 +317,10 @@ class CPushMod : public CModule PutModule("Error: secret not set"); return; } + if (options["message_priority"] != "") + { + params["priority"] = options["message_priority"]; + } service_host = "www.notifymyandroid.com"; service_url = "/publicapi/notify"; From 9f901a9caaf2a32c52b2d640a1a575efea31274e Mon Sep 17 00:00:00 2001 From: Erik Johnson Date: Mon, 17 Feb 2014 12:53:04 -0600 Subject: [PATCH 2/2] Update README to reflect message_priority on NMA --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fdf5127..f4987fa 100755 --- a/README.md +++ b/README.md @@ -272,7 +272,7 @@ to something similar to "http://domain/#channel/2011-03-09 14:25:09", or * `message_priority = ""` Priority level that will be used for the push notification. - Currently supported only by Pushover.net. + Currently supported only by Pushover.net and Notify My Android. * `message_sound = ""`