Add notification title

This commit is contained in:
Andre Medeiros 2021-07-26 13:38:07 -04:00
parent 2cfc5f1bec
commit e39693d47b

View file

@ -72,6 +72,7 @@ func (a *api) testDeviceHandler(w http.ResponseWriter, r *http.Request, ps httpr
notification.Payload = payload.
NewPayload().
Category("test-notification").
AlertTitle("Test notification").
AlertBody(body)
client := apns2.NewTokenClient(a.apns)