From 0468f4cff0224d7c544acc11bd87aa90a17727a9 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sun, 27 Mar 2016 22:56:56 +0800 Subject: [PATCH] add comment for ios payload. Signed-off-by: Bo-Yi Wu --- gorush/notification.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gorush/notification.go b/gorush/notification.go index 61e6df3..4f66347 100644 --- a/gorush/notification.go +++ b/gorush/notification.go @@ -102,6 +102,8 @@ func pushNotification(notification RequestPushNotification) bool { func pushNotificationIos(req RequestPushNotification) bool { + // The Remote Notification Payload + // https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/TheNotificationPayload.html for _, token := range req.Tokens { notification := &apns.Notification{} notification.DeviceToken = token