How ever in practice we need to send push based notifications on ios devices from the rails application.
For this purpose you can use
grocer ruby gem. Here is sample implementation for this:
gem 'grocer' in you gem file and run
bundle install or just run
gem install grocer.
Create a yml for notification
- Create a yml file in config folder on app for settings
Creating Class for Notification
- Create a file in
- Add following lines of code inside