Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install ruby-push-notifications
Ruby Push Notifications gem usage is really easy.
For completely detailed examples:
Feel free to contribute!!
git checkout -b my-new-feature)
git commit -am 'Add some feature')
git push origin my-new-feature)
If you see "255 Unknown Error" error code
This error code is assigned when the connection to push notification server wasn't successful 255 UNKnown Error code
Checking your connection configuration for example with APNS connection.
When your pem file and token are development make sure you configure the pusher for sandbox mode
RubyPushNotifications::APNS::APNSPusher.new('the certificate', true))
or when your pem file and token are production you should configure the pusher for production mode (Set the sandbox mode to false when creating your pusher)
RubyPushNotifications::APNS::APNSPusher.new('the certificate', false))
Refer to the CHANGELOG.md file for detailed changes across versions.