mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-26 11:36:44 +08:00
singal offline push
This commit is contained in:
parent
64fa52452c
commit
6996c008d0
@ -45,6 +45,7 @@ func (j *JPush) Push(accounts []string, alert, detailContent, operationID string
|
|||||||
if opts.Signal.ClientMsgID != "" {
|
if opts.Signal.ClientMsgID != "" {
|
||||||
extras.ClientMsgID = opts.Signal.ClientMsgID
|
extras.ClientMsgID = opts.Signal.ClientMsgID
|
||||||
}
|
}
|
||||||
|
no.IOSEnableMutableContent()
|
||||||
no.SetExtras(extras)
|
no.SetExtras(extras)
|
||||||
var me requestBody.Message
|
var me requestBody.Message
|
||||||
me.SetMsgContent(detailContent)
|
me.SetMsgContent(detailContent)
|
||||||
|
@ -22,6 +22,7 @@ type Ios struct {
|
|||||||
Sound string `json:"sound,omitempty"`
|
Sound string `json:"sound,omitempty"`
|
||||||
Badge string `json:"badge,omitempty"`
|
Badge string `json:"badge,omitempty"`
|
||||||
Extras Extras `json:"extras"`
|
Extras Extras `json:"extras"`
|
||||||
|
MutableContent bool `json:"mutable-content"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Extras struct {
|
type Extras struct {
|
||||||
@ -45,3 +46,7 @@ func (n *Notification) SetExtras(extras Extras) {
|
|||||||
func (n *Notification) SetAndroidIntent() {
|
func (n *Notification) SetAndroidIntent() {
|
||||||
n.Android.Intent.URL = config.Config.Push.Jpns.PushIntent
|
n.Android.Intent.URL = config.Config.Push.Jpns.PushIntent
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (n *Notification) IOSEnableMutableContent() {
|
||||||
|
n.IOS.MutableContent = true
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user