Created
July 23, 2015 07:22
-
-
Save walkline/42c6b68313ce240781d3 to your computer and use it in GitHub Desktop.
This file contains 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
diff --git a/notification/sender.go b/notification/sender.go | |
index 8fca35e..6657b60 100644 | |
--- a/notification/sender.go | |
+++ b/notification/sender.go | |
@@ -110,6 +110,7 @@ func (this *Sender) send(users []auth.User, vote storage.Vote) { | |
if len(devices.AppleIds) > 0 { | |
fmt.Printf("Notification sender debug: Server: %s, Cert: %s, Key: %s\n", this.AppleServer, this.AppleCertPath, this.AppleKeyPath) | |
apn, err := apns.NewClient(this.AppleServer, this.AppleCertPath, this.AppleKeyPath) | |
+ apn.MAX_PAYLOAD_SIZE = 2048 | |
if err != nil { | |
fmt.Printf("Notification sender ERROR: Sending notification to Apple device failed: %s\n", err.Error()) | |
} else { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment