Skip to content

Commit

Permalink
version bump and documentation for broadcast_push
Browse files Browse the repository at this point in the history
  • Loading branch information
Joey Schoblaska committed Jul 14, 2011
1 parent 7072464 commit 387db68
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions README.markdown
Expand Up @@ -62,6 +62,19 @@ notifications = [
Urbanairship.batch_push notifications # => true
```

Sending broadcoast notifications
--------------------------------
Urbanairship allows you to send a broadcast notification to all active registered device tokens for your app.

```ruby
notification = {
:schedule_for => 1.hour.from_now,
:aps => {:alert => 'Important announcement!', :badge => 1}
}

Urbanairship.broadcast_push notification # => true
```

Polling the feedback API
------------------------
The first time you attempt to send a push notification to a device that has uninstalled your app (or has opted-out of notifications), both Apple and Urbanairship will register that token in their feedback API. Urbanairship will prevent further attempted notification sends to that device, but it's a good practice to periodically poll Urbanairship's feedback API and mark those tokens as inactive in your own system as well.
Expand Down
4 changes: 2 additions & 2 deletions urbanairship.gemspec
Expand Up @@ -2,8 +2,8 @@ require 'rake'

Gem::Specification.new do |s|
s.name = 'urbanairship'
s.version = '1.0.1'
s.date = '2011-06-04'
s.version = '1.0.2'
s.date = '2011-07-14'
s.summary = 'A Ruby wrapper for the Urbanairship API'
s.description = 'Urbanairship is a Ruby library for interacting with the Urbanairship (http://urbanairship.com) API.'
s.homepage = 'http://github.com/groupon/urbanairship'
Expand Down

0 comments on commit 387db68

Please sign in to comment.