Skip to content

unchi/apns_polite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Apple Push Notification

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages