go-apns is apple apns libary providing redis and http protocol to use
connection pool
support Invalid token filter
message resend
============
apnsConf := apns.Config{}
apnsOption := apns.NewApnsOption(apnsConf)
feedback := make(chan *apns.Feedback, 1000)
//初始化apns
apnsClient := apns.NewDefaultApnsClient(apnsOption.Cert,
apnsOption.PushAddr, chan<- *apns.Feedback(feedback),
apnsOption.FeedbackAddr,
apns.NewCycleLink(3, apnsOption.StorageCapacity))
aps := apns.Aps{}
aps.Sound =
aps.Badge =
aps.Alert =
//payload
payload := apns.NewSimplePayLoadWithAps(aps)
// send enchanced push
apnsClient.SendEnhancedNotification(1, math.MaxUint32, apnsToken, *payload)
Mail: blackbeans.zc@gmail.com
QQ: 136448723