2021-07-23 17:56:33 +00:00
|
|
|
package notify
|
2016-03-26 05:59:56 +00:00
|
|
|
|
2016-03-26 06:26:07 +00:00
|
|
|
import (
|
2017-07-25 08:41:30 +00:00
|
|
|
"github.com/appleboy/go-fcm"
|
2020-09-04 03:01:21 +00:00
|
|
|
"github.com/msalihkarakasli/go-hms-push/push/core"
|
2017-10-25 08:49:23 +00:00
|
|
|
"github.com/sideshow/apns2"
|
2016-03-26 06:26:07 +00:00
|
|
|
)
|
|
|
|
|
2016-03-26 05:59:56 +00:00
|
|
|
var (
|
2016-04-13 06:59:28 +00:00
|
|
|
// ApnsClient is apns client
|
2017-10-25 08:49:23 +00:00
|
|
|
ApnsClient *apns2.Client
|
2017-07-25 08:41:30 +00:00
|
|
|
// FCMClient is apns client
|
|
|
|
FCMClient *fcm.Client
|
2020-09-04 03:01:21 +00:00
|
|
|
// HMSClient is Huawei push client
|
|
|
|
HMSClient *core.HMSClient
|
2020-04-23 13:02:53 +00:00
|
|
|
// MaxConcurrentIOSPushes pool to limit the number of concurrent iOS pushes
|
|
|
|
MaxConcurrentIOSPushes chan struct{}
|
2016-03-26 05:59:56 +00:00
|
|
|
)
|
2022-12-20 14:03:29 +00:00
|
|
|
|
|
|
|
const (
|
|
|
|
HIGH = "high"
|
|
|
|
NORMAL = "nornal"
|
|
|
|
)
|