mirror of
https://github.com/twofas/2fas-server.git
synced 2024-11-22 10:20:45 +01:00
ios: add default sound for push notification
This commit is contained in:
parent
2e4f34e829
commit
499bef42b5
@ -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,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user