Fix test notification

This commit is contained in:
Andre Medeiros 2022-05-21 09:46:12 -04:00
parent adbaeb9e54
commit 17a37a3b01

View file

@ -73,7 +73,9 @@ func (a *api) testDeviceHandler(w http.ResponseWriter, r *http.Request) {
Category("test-notification"). Category("test-notification").
Custom("test_accounts", strings.Join(users, ",")). Custom("test_accounts", strings.Join(users, ",")).
AlertTitle(notificationTitle). AlertTitle(notificationTitle).
AlertBody(body) AlertBody(body).
MutableContent().
Sound("traloop.wav")
client := apns2.NewTokenClient(a.apns) client := apns2.NewTokenClient(a.apns)
if !d.Sandbox { if !d.Sandbox {