PushNotifier
Installation
Add this line to your application's Gemfile:
gem 'push_notifier'
And then execute:
$ bundle
Or install it yourself as:
$ gem install push_notifier
Usage
APNS = PushNotifier::APNS.set_mode :production
APNS.certificate = 'certificate.pem'
APNS.passphrase = 'passphrase' #If you have pasword protected the certiicate
notification = PushNotifier::APNS::Notification.new '<device_token>', 'message'
APNS.send_message notification
Contributing
- Fork it ( https://github.com/h0lyalg0rithm/push_notifier/fork )
- 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 a new Pull Request