Skip to content

Instantly share code, notes, and snippets.

@walkline
Created July 23, 2015 07:22
Show Gist options
  • Save walkline/42c6b68313ce240781d3 to your computer and use it in GitHub Desktop.
Save walkline/42c6b68313ce240781d3 to your computer and use it in GitHub Desktop.
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