Skip to content

Commit

Permalink
Merge pull request #16 from tilo/master
Browse files Browse the repository at this point in the history
adding how to send silent push notifications to README
  • Loading branch information
tompesman committed Feb 20, 2014
2 parents fef59ab + deb68ad commit 2f9a886
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Expand Up @@ -108,6 +108,20 @@ Push::MessageApns.create(
expiry: 1.day.to_i,
attributes_for_device: {key: 'MSG'})
```

Silent Push Notification via APNS:

```ruby
Push::MessageApns.create(
app: 'app_name',
device: '<APNS device_token here>',
alert: nil,
sound: nil,
badge: 1,
expiry: 1.day.to_i,
attributes_for_device: nil)
```

C2DM:
```ruby
Push::MessageC2dm.create(
Expand Down

0 comments on commit 2f9a886

Please sign in to comment.