How to pause a Notification

35 views
Skip to first unread message

Trevor Hanes

unread,
Jul 3, 2015, 2:14:12 PM7/3/15
to plot-...@googlegroups.com
Hi, So I've been doing a lot of work, setting up our site and new service, but it never occurred to me to the other day, that I need to include a feature that can pause a notification, is there a way this can be done via API, seeing this is my main source for parsing between my site and Plotprojects. 

Mark van der Tol

unread,
Jul 6, 2015, 4:25:51 AM7/6/15
to plot-...@googlegroups.com, than...@gmail.com
Hi Trevor,

It is possible to pause notifications through the API. Whether a notification can is enabled or not is determined by the "state" property of the notification. It can have two values: "published" (enabled in the dashboard) and "unpublished" (paused in the dashboard).

To pause a notification, just set the "state" property of the notification to "unpublished". To enable it again you can set the state to "publised".

If something is unclear or if you have further questions, please let us know.

Kind regards,
Mark
Plot Projects

Trevor Hanes

unread,
Jul 6, 2015, 11:16:18 AM7/6/15
to plot-...@googlegroups.com

Hi Mark

Thank you, that completely make sense.  Thanks again.

--
You received this message because you are subscribed to a topic in the Google Groups "plot-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/plot-users/uEh-XTshFmg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to plot-users+...@googlegroups.com.
Visit this group at http://groups.google.com/group/plot-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/plot-users/4a128be5-58bf-4a33-a041-ea776bb54f92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Joseph

unread,
Nov 2, 2015, 6:47:38 AM11/2/15
to plot-users
Hi Mark, 

A Follow up to this question asked by Trev,

I have set via our Dashboard to Publish / Pause Notifications, the issue is that I have set a Notification to Pause, and I do see the state of the Notification as Pause, however, I received the Notification via the App?

Here is that has been done:

Pausing a Notification, I Update a Notification:
PUT /api/v1/notification/<id>

{
    message: String (optional),
    data: String (optional), // See data field in glossary
    ...
    published: false, // false to Pause, true for Publishing
....
}

The returned state after Updating this notification was unpublished, yet after deleting the app, and re-initializing the Plot Module in Titanium (even till the next day), I received the notification (tested on iOS Titanium Module).

Mark van der Tol

unread,
Nov 2, 2015, 7:45:46 AM11/2/15
to plot-users
Hi Joseph,

We're unable to reproduce the issue you describe. Could you provide more information about the notification which was sent even though it was paused? Maybe you could mail me the id of the notification (or the whole url to the edit notification page in the dashboard) so we can look into it further?

We provide debug logging to see in more detail what notifications get loaded. Did you use that? Our test app has it enabled by default.

Kind regards,
Mark van der Tol
Plot Projects
Reply all
Reply to author
Forward
0 new messages