Skip to content

关于ios自定义参数的问题 #1

@baiyecha

Description

@baiyecha

我的使用安卓推送没有问题,但是使用ios推送,收不到自定义的消息,在后台历史推送里面也看不到

这是我的代码
auther := auth.Auther{AppID: "", SecretKey: ""}
pushReq, _ = req.NewPushReq(
&xinge.Request{},
req.Platform(xinge.PlatformiOS),
req.EnvDev(),
req.AudienceType(xinge.AdToken),
req.MessageType(xinge.MsgTypeNotify),
req.TokenList([]string{NotificationId}),
req.PushID("0"),
req.Message(xinge.Message{
Title: "",
Content: "",
Android: &xinge.AndroidParams{},
IOS: &xinge.IOSParams{},
}),
req.CustomContent(custom),
)
custom 是一个map[string]string
代码基本和安卓的一模一样

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions