add comment for ios payload.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-03-27 22:56:56 +08:00
parent d51c3b475b
commit 0468f4cff0
1 changed files with 2 additions and 0 deletions

View File

@ -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