IonicPush
Just a simple gem to send push notificaitons through Ionic Push API.
Installation
Add this line to your application's Gemfile:
gem 'ionic_push'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ionic_push
Usage
Configuration
Before all You'll need your Ionic API TOKEN and a Security Profile. For more details about Ionic Push see the official documentation.
You'll have create a configuration file.
Ex.initializers/ionic_push.rb
IonicPush.configure do |config|
config.api_key = '<YOUR-API-KEY>'
config.profile = '<YOUR-SECURIY-PROFILE>'
end
The basic
IonicPush.push(['your', 'devices', 'tokens'], {title: 'Push Title', message: 'Push Message'})
To do
- [x] Basic API Usage
- [ ] Sengind Push to Ionic User ID's
- [ ] Scheduling a push for later delivery
- [ ] Adding custom data to your notificaitons
- [ ] Phonegap Push plugin options
- [ ] Customizing Notification appearance
- [ ] Templating your push notification
- [ ] Notification's priority
- [ ] Checking the status of push
Development
After checking out the repo, run bin/setup
to install dependencies. Then, run rake test
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ionic_push.