This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'openssl' | |
require 'socket' | |
require 'rubygems' | |
require 'json' | |
# Takes json as an input and sends data to APNS over SSL | |
APNS_HOST = 'gateway.sandbox.push.apple.com' | |
APNS_PORT = 2195 | |
APNS_CERT_FILE_PATH = 'MyCert.pem' |