-
Notifications
You must be signed in to change notification settings - Fork 28
MessagePriority
Message Priority allows you to instruct the system how to handle the message and what will happen on the users devices. Refer to Pushover's explination of what behavior each level exhibts. Pushover4J provides an easy to use enumeration to translated the -2 <= => 2 range of numbers into a more quickly readable format. Below are the currently supported values:
LOWEST(-2)
LOW(-1) / QUIET(-1)
NORMAL(0)
HIGH(1)
EMERGENCY(2)
Note QUIET was an older name for LOW and is retained for compatibility reasons.
The standard use is while using the Pushover Message Builder call setPriority(val)
. Example:
.setPriority(MessagePriorty.NORMAL)
This sets the priority to Normal and the message will be delivered in a standard message.
In another example:
.setPriority(MesssagePriority.EMERGENCY)
will trigger the Pushover servers to treat the message differently and as such Emergency priority has addtional parameters that must be set.