Apple Push Notification Service
Add this line to your application's Gemfile:
gem 'apns_polite'
And then execute:
$ bundle
Or install it yourself as:
$ gem install apns_polite
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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request