README.md in pushpad-0.10.0 vs README.md in pushpad-0.11.0
- old
+ new
@@ -60,10 +60,11 @@
target_url: "http://example.com", # optional, defaults to your project website
icon_url: "http://example.com/assets/icon.png", # optional, defaults to the project icon
image_url: "http://example.com/assets/image.png", # optional, an image to display in the notification content
ttl: 604800, # optional, drop the notification after this number of seconds if a device is offline
require_interaction: true, # optional, prevent Chrome on desktop from automatically closing the notification after a few seconds
+ urgent: false, # optional, enable this option only for time-sensitive alerts (e.g. incoming phone call)
custom_data: "123", # optional, a string that is passed as an argument to action button callbacks
# optional, add some action buttons to the notification
# see https://pushpad.xyz/docs/action_buttons
actions: [
{
@@ -138,9 +139,10 @@
notification.title # => "Foo Bar",
notification.body # => "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
notification.target_url # => "http://example.com",
notification.ttl # => 604800,
notification.require_interaction # => false,
+notification.urgent # => false,
notification.icon_url # => "http://example.com/assets/icon.png",
# `created_at` is a `Time` instance
notification.created_at.utc.to_s # => "2016-07-06 10:09:14 UTC",