This file contains hidden or 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
# Install APNS gem: | |
# sudo gem install APNS | |
require 'APNS' | |
# gateway.sandbox.push.apple.com is default | |
# APNS.host = 'gateway.push.apple.com' # Production | |
APNS.host = 'gateway.sandbox.push.apple.com' # Development | |
# this is also the default. Shouldn't ever have to set this, but just in case Apple goes crazy, you can. | |
APNS.port = 2195 |
This file contains hidden or 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
// | |
// AppDelegate.swift | |
// pushtest | |
// | |
// Created by sawapi on 2014/06/08. | |
// Copyright (c) 2014年 sawapi. All rights reserved. | |
// | |
// iOS8用 | |
import UIKit |