docs/push.rst in urbanairship-5.2.0 vs docs/push.rst in urbanairship-5.3.0

- old
+ new

@@ -1,9 +1,9 @@ Defining and Sending Push Notifications ======================================= -The Urban Airship Ruby Library strives to match the standard Urban +The Airship Ruby Library strives to match the standard Urban Airship JSON format for specifying push notifications. When creating a push notification, you: #. Select the audience #. Define the notification payload @@ -138,11 +138,11 @@ push.audience = UA.not(UA.and(UA.tag('sports'), UA.tag('business'))) Select a location expression. Location selectors are made up of either an id or an alias and a date period specifier. Use a date specification function to generate the time period specifier. Location aliases can be found here: -http://docs.urbanairship.com/reference/location_boundary_catalog.html +http://docs.airship.com/reference/location_boundary_catalog.html ID location example: .. code-block:: ruby @@ -281,11 +281,11 @@ web: UA.web( alert: 'Hello Web!', title: 'My Title', extra: { 'key' => 'value', 'key2' => 'value2' }, require_interaction: true, - icon: { 'url' => 'https://www.urbanairship.com'} + icon: { 'url' => 'https://www.airship.com'} ) ) **Example Email Override** @@ -293,16 +293,16 @@ push.notification = UA.notification( alert: 'Hello World!', email: UA.email( subject: 'Hello Inbox!', - html_body: '<h2>Richtext body goes here</h2><p>Wow!</p><p><a data-ua-unsubscribe=\"1\" title=\"unsubscribe\" href=\"http://unsubscribe.urbanairship.com/email/success.html\">Unsubscribe</a></p>', - plaintext_body: 'Plaintext version goes here [[ua-unsubscribe href=\"http://unsubscribe.urbanairship.com/email/success.html\"]]', + html_body: '<h2>Richtext body goes here</h2><p>Wow!</p><p><a data-ua-unsubscribe=\"1\" title=\"unsubscribe\" href=\"http://unsubscribe.airship.com/email/success.html\">Unsubscribe</a></p>', + plaintext_body: 'Plaintext version goes here [[ua-unsubscribe href=\"http://unsubscribe.airship.com/email/success.html\"]]', message_type: 'commercial', sender_name: 'Airship', - sender_address: 'team@urbanairship.com', - reply_to: 'no-reply@urbanairship.com' + sender_address: 'team@airship.com', + reply_to: 'no-reply@airship.com' ) ) .. note:: @@ -371,23 +371,23 @@ Actions ------- -Urban Airship Actions provides a convenient way to automatically +Airship Actions provides a convenient way to automatically perform tasks by name in response to push notifications, Rich App Page interactions and JavaScript. More information at -http://docs.urbanairship.com/api/ua.html#actions, example: +http://docs.airship.com/api/ua.html#actions, example: .. code-block:: ruby push.notification = UA.notification( alert: 'Hello world', actions: UA.actions( add_tag: 'new_tag', remove_old: 'old_tag', - share: 'Check out Urban Airship!', + share: 'Check out Airship!', open_: { type: 'url', content: 'http://www.example.com' }, app_defined: { @@ -400,10 +400,10 @@ ------------------------- The interactive notification payload determines the ways you can interact with a notification. It contains two attributes: "type" (mandatory) and "button_actions" (optional). More information at -http://docs.urbanairship.com/api/ua.html#interactive-notifications +http://docs.airship.com/api/ua.html#interactive-notifications Example: .. code-block:: ruby push.notification = UA.notification(