func NewIosPusher(isProd bool, certificateFile string, keyFile string) *IosPusher {
	endpoint := ApnsEndpointSandbox
	if isProd {
		endpoint = ApnsEndpointProduction
	}
	return &IosPusher{
		apns: apns.NewClient(fmt.Sprintf("%v:%v", endpoint, ApnsPort), certificateFile, keyFile),
	}
}
NewIosPusher returns an IosPusher, initialized with the specified
certificate and key files.
package push
import (
	"fmt"
	"github.com/anachronistic/apns"
)
const (
	ApnsEndpointSandbox = "gateway.sandbox.push.apple.com"
	ApnsEndpointProduction = "gateway.push.apple.com"
	ApnsPort = 2195
	IosDefaultSound = "default"
)
type IosPusher struct {
	apns *apns.Client
}