From 499bef42b5a6c1b4091ac0b5cfc9ab61ae2b7c43 Mon Sep 17 00:00:00 2001 From: Tobiasz Heller <14020794+tobiaszheller@users.noreply.github.com> Date: Wed, 4 Oct 2023 20:47:46 +0200 Subject: [PATCH] ios: add default sound for push notification --- .../browser_extension/app/command/request_2fa_token.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/internal/api/browser_extension/app/command/request_2fa_token.go b/internal/api/browser_extension/app/command/request_2fa_token.go index bcaf8f7..bb544f0 100644 --- a/internal/api/browser_extension/app/command/request_2fa_token.go +++ b/internal/api/browser_extension/app/command/request_2fa_token.go @@ -2,16 +2,17 @@ package command import ( "context" - "firebase.google.com/go/v4/messaging" "fmt" + "net/url" + "time" + + "firebase.google.com/go/v4/messaging" "github.com/avast/retry-go/v4" "github.com/gin-gonic/gin" "github.com/google/uuid" "github.com/twofas/2fas-server/internal/api/browser_extension/domain" "github.com/twofas/2fas-server/internal/common/logging" "github.com/twofas/2fas-server/internal/common/push" - "net/url" - "time" ) var tokenPushNotificationTtl = time.Minute * 3 @@ -134,6 +135,7 @@ func createPushNotificationForIos(token string, data map[string]interface{}) *me Body: fmt.Sprintf("2FA request for %s", data["domain"]), }, Category: "authReq", + Sound: "default", }, CustomData: data, },