https://github.com/ythecombinator/push_notification-ruby
Simple example on how to deliver iOS Push Notifications with Ruby.
https://github.com/ythecombinator/push_notification-ruby
Last synced: 3 months ago
JSON representation
Simple example on how to deliver iOS Push Notifications with Ruby.
- Host: GitHub
- URL: https://github.com/ythecombinator/push_notification-ruby
- Owner: ythecombinator
- License: mit
- Created: 2016-07-05T01:21:25.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-05T01:45:12.000Z (about 10 years ago)
- Last Synced: 2025-01-18T10:28:58.210Z (over 1 year ago)
- Language: Ruby
- Size: 166 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
Simple example on how to deliver iOS Push Notifications with Ruby.
## Table of Contents
- [Introduction](#introduction)
- [Usage](#usage)
- [More Help](#more-help)
- [Credits](#credits)
- [License](#license)
## Introduction
This code sample shows how to create a web provider for your push notifications
which interfaces with the [Apple Push Notification Service (APNS)](https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html)
using [Ruby](https://www.ruby-lang.org/en/) and the amazing
[Houston](https://github.com/nomad/houston) gem.
The sample was originally used in [this workshop](https://speakerdeck.com/ythecombinator/the-art-of-notifications).
## Usage
1. Make sure you have [Git](https://git-scm.com/) and
[Bundler](https://github.com/bundler/bundler) installed.
1. Clone this repo:
```sh
git clone https://github.com/bepid-ifce/push_notifications-ruby.git
```
1. Enter the repo directory:
```sh
cd push_notifications-ruby
```
1. Install all dependencies:
```sh
bundle install
```
1. Add your `cert.pem` and `key.pem` files to the project root - you can find
more info on this [here](#more-help)
## More Help
If you're still confused with all the process of push notifications to *iOS*,
you can find a pretty good tutorial
[here](http://www.appcoda.com/push-notification-ios/) and a good help on how to
generate your certicates
[here](https://github.com/argon/node-apn/wiki/Preparing-Certificates).
## Credits
Nothing of this would be possible without the amazing
[Houston](https://github.com/nomad/houston) module.
## License
[Push Notifications Ruby](https://github.com/bepid-ifce/push_notifications-ruby)
is distributed under the MIT License, available in this repository. All
contributions are assumed to be also licensed under the MIT License.