Packages
pigeon
0.1.0
2.0.1
2.0.0
2.0.0-rc.3
2.0.0-rc.2
2.0.0-rc.1
2.0.0-rc.0
1.6.3
1.6.2
1.6.1
1.6.0
1.5.1
1.5.0
1.4.0
1.3.2
1.3.1
1.3.0
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.1.0-rc.1
1.1.0-rc.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.13.1
0.13.0
0.12.1
0.12.0
0.11.0
0.10.3
0.10.2
0.10.1
0.10.0
0.9.1
0.9.0
0.8.0
0.7.0
0.6.0
0.5.2
0.5.1
0.5.0
0.4.1
0.4.0
0.3.0
0.2.0
0.1.0
iOS (APNS), Android (FCM), and Amazon Android (ADM) push notifications for Elixir.
Current section
Files
Jump to
Current section
Files
README.md
# Pigeon
iOS push notifications for Elixir
## Usage
1. Create a notification packet with `n = Pigeon.Notification.new(message, device_token)`
2. Send the packet with `Pigeon.push(n, uri, "your_push_cert.pem", "your_push_key.pem")`
`uri` can be one of the following:
* Pigeon.apple_development_gateway_uri
* Pigeon.apple_production_gateway_uri
# Generating Your Certificate and Key .pem
1. In Keychain Access, right-click your push certificate and select "Export..."
2. Export the certificate as `cert.p12`
3. Click the dropdown arrow next to the certificate, right-click the private key and select "Export..."
4. Export the private key as `key.p12`
5. From a shell, convert the cert with `openssl pkcs12 -clcerts -nokeys -out cert.pem -in cert.p12`
6. Conver the key with `pkcs12 -nocerts -out key.pem -in key.p12`
7. To remove the password from the key, `openssl rsa -in key.pem -out key_unencrypted.pem`
8. `cert.pem` and `key_unencrypted.pem` can be used as the cert and key in `Pigeon.push`, respectively.