-
Configure an application to recieve push notifications using the iOS Provisioning Portal
-
Copy Rakefile.example to Rakefile and fill in with the values for your application
-
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
-
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
benr75/rubymotion-push-notification
Example code to get Push Notifications working in a RubyMotion app
Ruby