require 'grocer' pusher = Grocer.pusher( certificate: "/path/to/cert.pem", # required passphrase: "", # optional gateway: "gateway.sandbox.push.apple.com", # optional port: 2195, # optional retries: 3 # optional ) notification = Grocer::Notification.new( device_token: "ここ対象のアプリのデバイストークンを空白なしで入れる", alert: "Hello from Grocer!", badge: 1 ) pusher.push(notification)