From 4b7991bbbf383ad2b3c8501062c101c6d5561f3e Mon Sep 17 00:00:00 2001 From: Sinh Date: Wed, 22 Dec 2021 09:54:23 +0700 Subject: [PATCH] update notification sound payload --- model.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/model.go b/model.go index 41350b7..0746e3d 100644 --- a/model.go +++ b/model.go @@ -16,7 +16,13 @@ type PushRequest struct { Users []string `json:"users"` Label string `json:"label,omitempty"` Category string `json:"category,omitempty"` - Sound string `json:"sound,omitempty"` + Sound *Sound `json:"sound,omitempty"` +} + +// Sound ... +type Sound struct { + IOSFileName string `json:"iosFileName"` + AndroidChannel string `json:"androidChannel"` } // PushResponse ... @@ -34,7 +40,7 @@ type pushRequest struct { Topic string `json:"topic"` Label string `json:"label"` Category string `json:"category"` - Sound string `json:"sound,omitempty"` + Sound *Sound `json:"sound,omitempty"` } // Query ...