docs/push.rst in urbanairship-8.0.1 vs docs/push.rst in urbanairship-9.0.0
- old
+ new
@@ -20,11 +20,11 @@
UA = Urbanairship
airship = UA::Client.new(key:'application_key', secret:'master_secret')
push = airship.create_push
push.audience = UA.all
push.notification = UA.notification(alert: 'Hello')
- push.device_types = UA.all
+ push.device_types = UA.device_types(['ios','android'])
push.send_push
Audience Selectors
------------------
@@ -440,15 +440,9 @@
types you wish to target with a list of strings:
.. code-block:: ruby
push.device_types = UA.device_types(['ios', 'android', 'web', 'open::example'])
-
-or with the ``all`` shortcut.
-
-.. code-block:: ruby
-
- push.device_types = UA.all
Delivery
--------