mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-10-26 05:02:11 +08:00
fix: offlinepush
This commit is contained in:
parent
7f3c502e52
commit
bb08da7f76
@ -26,18 +26,6 @@ var (
|
|||||||
addNum = "1"
|
addNum = "1"
|
||||||
defaultStrategy = strategy{
|
defaultStrategy = strategy{
|
||||||
Default: 1,
|
Default: 1,
|
||||||
IOS: 1,
|
|
||||||
St: 1,
|
|
||||||
Hw: 1,
|
|
||||||
Ho: 1,
|
|
||||||
XM: 1,
|
|
||||||
XMG: 1,
|
|
||||||
VV: 1,
|
|
||||||
Op: 1,
|
|
||||||
OpG: 1,
|
|
||||||
MZ: 1,
|
|
||||||
HosHw: 1,
|
|
||||||
WX: 1,
|
|
||||||
}
|
}
|
||||||
msgCategory = "CATEGORY_MESSAGE"
|
msgCategory = "CATEGORY_MESSAGE"
|
||||||
)
|
)
|
||||||
@ -86,18 +74,18 @@ type Settings struct {
|
|||||||
|
|
||||||
type strategy struct {
|
type strategy struct {
|
||||||
Default int64 `json:"default"`
|
Default int64 `json:"default"`
|
||||||
IOS int64 `json:"ios"`
|
//IOS int64 `json:"ios"`
|
||||||
St int64 `json:"st"`
|
//St int64 `json:"st"`
|
||||||
Hw int64 `json:"hw"`
|
//Hw int64 `json:"hw"`
|
||||||
Ho int64 `json:"ho"`
|
//Ho int64 `json:"ho"`
|
||||||
XM int64 `json:"xm"`
|
//XM int64 `json:"xm"`
|
||||||
XMG int64 `json:"xmg"`
|
//XMG int64 `json:"xmg"`
|
||||||
VV int64 `json:"vv"`
|
//VV int64 `json:"vv"`
|
||||||
Op int64 `json:"op"`
|
//Op int64 `json:"op"`
|
||||||
OpG int64 `json:"opg"`
|
//OpG int64 `json:"opg"`
|
||||||
MZ int64 `json:"mz"`
|
//MZ int64 `json:"mz"`
|
||||||
HosHw int64 `json:"hoshw"`
|
//HosHw int64 `json:"hoshw"`
|
||||||
WX int64 `json:"wx"`
|
//WX int64 `json:"wx"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Audience struct {
|
type Audience struct {
|
||||||
@ -161,6 +149,7 @@ type Options struct {
|
|||||||
ChannelID string `json:"/message/android/notification/channel_id"`
|
ChannelID string `json:"/message/android/notification/channel_id"`
|
||||||
Sound string `json:"/message/android/notification/sound"`
|
Sound string `json:"/message/android/notification/sound"`
|
||||||
Importance string `json:"/message/android/notification/importance"`
|
Importance string `json:"/message/android/notification/importance"`
|
||||||
|
Category string `json:"/message/android/category"`
|
||||||
} `json:"HW"`
|
} `json:"HW"`
|
||||||
XM struct {
|
XM struct {
|
||||||
ChannelID string `json:"/extra.channel_id"`
|
ChannelID string `json:"/extra.channel_id"`
|
||||||
@ -216,7 +205,8 @@ func (pushReq *PushReq) setPushChannel(title string, body string) {
|
|||||||
ChannelID string `json:"/message/android/notification/channel_id"`
|
ChannelID string `json:"/message/android/notification/channel_id"`
|
||||||
Sound string `json:"/message/android/notification/sound"`
|
Sound string `json:"/message/android/notification/sound"`
|
||||||
Importance string `json:"/message/android/notification/importance"`
|
Importance string `json:"/message/android/notification/importance"`
|
||||||
}{ChannelID: "RingRing4", Sound: "/raw/ring001", Importance: "NORMAL"},
|
Category string `json:"/message/android/category"`
|
||||||
|
}{ChannelID: "RingRing4", Sound: "/raw/ring001", Importance: "NORMAL", Category: "IM"},
|
||||||
XM: struct {
|
XM: struct {
|
||||||
ChannelID string `json:"/extra.channel_id"`
|
ChannelID string `json:"/extra.channel_id"`
|
||||||
}{ChannelID: "high_system"},
|
}{ChannelID: "high_system"},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user