Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Example code to get Push Notifications working in a RubyMotion app
Branch: master
Failed to load latest commit information.
app initial commit
scripts initial commit
spec initial commit
.gitignore initial commit more README cleanup
Rakefile.example initial commit

RubyMotion Push Notification Example


  1. Configure an application to recieve push notifications using the iOS Provisioning Portal
  2. Copy Rakefile.example to Rakefile and fill in with the values for your application
  3. Run 'rake device' to put the application on your device, it will display a push notification token in an alert view, it also logs it to the console
  4. Run the ruby script in the scripts directory. Place your push notification PEM file (exported from your keychain in p12, converted to PEM) in the same directory to and specify the filename when envoking the script.

    ruby push.rb '{"aps":{"sound":"chime","badge":128,"alert":"This is test message from ruby"}}' DEVICETOKEN PEMFILE
Something went wrong with that request. Please try again.