Skip to content
Apple Push Notification
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
LICENSE.txt
README.md
Rakefile
apns_polite.gemspec

README.md

ApnsPolite

Apple Push Notification Service

Installation

Add this line to your application's Gemfile:

gem 'apns_polite'

And then execute:

$ bundle

Or install it yourself as:

$ gem install apns_polite

Usage

m = ApnsPolite::Message.new 'device_token', alert: 'message sample', badge: 3
n = ApnsPolite::Notification.new host: "gateway.push.apple.com", port: 2195, pem: "pem path", password: "pem password"

n.push m

n.close

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Something went wrong with that request. Please try again.