Skip to content

Skeleton rails app to queue and send push notifications utilizing MongoDB

Notifications You must be signed in to change notification settings

benr75/Push-Queue-MongoDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Push Queue MongoDB

Configuration

  1. Create your development and production certificates in the Apple Provisioning Portal

  2. Export the certs in p12 format

  3. Convert the p12 to pem format

    openssl pkcs12 -in DevelopmentPushCert.p12 -out push-development-cert.pem -nodes -clcerts

    openssl pkcs12 -in ProductionPushCert.p12 -out push-production-cert.pem -nodes -clcerts

  4. Place the .pem files in RAILS_ROOT/config/push_certs

Usage

Creating push messages for the queue:

PushMessage.create(:token => "DEVICE TOKEN", :badge => 1, :sound => "", :message => "Test Push")

Sending pushes:

./script/runner ./lib/push.rb

About

Skeleton rails app to queue and send push notifications utilizing MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published