Skip to content

Commit

Permalink
print broadcast data that is sent to apns
Browse files Browse the repository at this point in the history
  • Loading branch information
konrad2002 committed Dec 4, 2024
1 parent 267837c commit ac22813
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions service/broadcast_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ func SendPushBroadcast(channel string, content string) (string, string, string,
}
`)

fmt.Printf("sending to '%s': \n%s\n", apnsUrl, string(b))

r, err := http.NewRequest("POST", apnsUrl+"/4/broadcasts/apps/de.logilutions.SwimResults", bytes.NewBuffer(b))
if err != nil {
fmt.Println(err)
Expand Down

0 comments on commit ac22813

Please sign in to comment.