在 RubyMotion 应用中使推送通知正常工作的示例代码
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暂无开放 Issues,或尚未同步最近议题。