Skip to content

Instantly share code, notes, and snippets.



Created Aug 10, 2016
What would you like to do?
require 'rubygems'
require 'apns' = '' = '' # プロダクションの場合
APNS.port = 2195
APNS.pem = 'xxx_apns_test.pem'
device_token = '{取得したdevice_token}'
APNS.send_notification(device_token, :alert => 'Hello iPhone!', :badge => 3, :sound => 'default')
puts 'finish'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.