diff --git a/scnserver/push/firebase.go b/scnserver/push/firebase.go index dc4c973..916a400 100644 --- a/scnserver/push/firebase.go +++ b/scnserver/push/firebase.go @@ -1,22 +1,23 @@ package push import ( - scn "blackforestbytes.com/simplecloudnotifier" - "blackforestbytes.com/simplecloudnotifier/models" "bytes" "context" _ "embed" "encoding/json" "errors" "fmt" - "git.blackforestbytes.com/BlackForestBytes/goext/langext" - "github.com/gin-gonic/gin" - "github.com/rs/zerolog/log" "io" "net/http" "strconv" "strings" "time" + + scn "blackforestbytes.com/simplecloudnotifier" + "blackforestbytes.com/simplecloudnotifier/models" + "git.blackforestbytes.com/BlackForestBytes/goext/langext" + "github.com/gin-gonic/gin" + "github.com/rs/zerolog/log" ) // https://firebase.google.com/docs/cloud-messaging/send-message#rest @@ -66,7 +67,13 @@ func (fb FirebaseConnector) SendNotification(ctx context.Context, user models.Us "title": msg.Title, "body": msg.ShortContent(), }, - "apns": gin.H{}, + "apns": gin.H{ + "payload": gin.H{ + "aps": gin.H{ + "sound": "default", + }, + }, + }, } } else if client.Type == models.ClientTypeAndroid { jsonBody = gin.H{