Skip to content

Commit ff97795

Browse files
authored
Merge pull request #9 from capcom6/feature/fcm-priority
Fixed: use of high priority FCM messages
2 parents 3375f9a + 4f88d01 commit ff97795

File tree

1 file changed

+4
-1
lines changed
  • internal/sms-gateway/services

1 file changed

+4
-1
lines changed

internal/sms-gateway/services/push.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ func (s *PushService) Send(ctx context.Context, token string, data map[string]st
5252
}
5353

5454
_, err := s.client.Send(ctx, &messaging.Message{
55-
Data: data,
55+
Data: data,
56+
Android: &messaging.AndroidConfig{
57+
Priority: "high",
58+
},
5659
Token: token,
5760
})
5861

0 commit comments

Comments
 (0)