mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
push add ios push
This commit is contained in:
parent
a69ebf4299
commit
d7cd8ba780
@ -24,12 +24,13 @@ func JGAccountListPush(accounts []string, content, detailContent, platform strin
|
|||||||
var me requestBody.Message
|
var me requestBody.Message
|
||||||
me.SetMsgContent(detailContent)
|
me.SetMsgContent(detailContent)
|
||||||
var o requestBody.Options
|
var o requestBody.Options
|
||||||
o.SetApnsProduction(false)
|
o.SetApnsProduction(true)
|
||||||
var po requestBody.PushObj
|
var po requestBody.PushObj
|
||||||
po.SetPlatform(&pf)
|
po.SetPlatform(&pf)
|
||||||
po.SetAudience(&au)
|
po.SetAudience(&au)
|
||||||
po.SetNotification(&no)
|
po.SetNotification(&no)
|
||||||
po.SetMessage(&me)
|
po.SetMessage(&me)
|
||||||
|
po.SetOptions(&o)
|
||||||
|
|
||||||
con, err := json.Marshal(po)
|
con, err := json.Marshal(po)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user