🐛 Fix APNs pushes no sound
This commit is contained in:
parent
bcab6dfc51
commit
3010d4f2a4
5
.idea/workspace.xml
generated
5
.idea/workspace.xml
generated
@ -4,7 +4,10 @@
|
|||||||
<option name="autoReloadType" value="ALL" />
|
<option name="autoReloadType" value="ALL" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="3fefb2c4-b6f9-466b-a523-53352e8d6f95" name="更改" comment=":bug: Bug fixes on notification badges for APNs" />
|
<list default="true" id="3fefb2c4-b6f9-466b-a523-53352e8d6f95" name="更改" comment=":bug: Bug fixes on notification badges for APNs">
|
||||||
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/pkg/services/notifications.go" beforeDir="false" afterPath="$PROJECT_DIR$/pkg/services/notifications.go" afterDir="false" />
|
||||||
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||||
|
@ -113,6 +113,7 @@ func PushNotification(notification models.Notification) error {
|
|||||||
NewPayload().
|
NewPayload().
|
||||||
AlertTitle(notification.Subject).
|
AlertTitle(notification.Subject).
|
||||||
AlertBody(notification.Content).
|
AlertBody(notification.Content).
|
||||||
|
SoundName("default").
|
||||||
MarshalJSON()
|
MarshalJSON()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Warn().Err(err).Msg("An error occurred when preparing to notify subscriber via APNs...")
|
log.Warn().Err(err).Msg("An error occurred when preparing to notify subscriber via APNs...")
|
||||||
|
Loading…
Reference in New Issue
Block a user