xinge icon indicating copy to clipboard operation
xinge copied to clipboard

腾讯信鸽push Golang lib

Results 5 xinge issues
Sort by recently updated
recently updated
newest added

Android可以正常收发,IOS,retcode是0,但是客户端收不到,麻烦帮忙看下,多谢 `func PushIOSMessage(rids []int, title, content, appID, secretKey string) error { accounts := make([]string, len(rids)) for i, rid := range(rids) { accounts[i] = strconv.Itoa(rid) } var pushReq *http.Request if gin.Mode()...

目前push的response的result字段已改成string类型,不再是map[string]string

因为 http.Client.Do() 的错误没有处理, 直接defer Close() 了

我的使用安卓推送没有问题,但是使用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),...

// Aps 通知栏iOS消息的aps字段,详情请参照苹果文档 type Aps struct { Alert map[string]string `json:"alert,omitempty"` Badge int `json:"badge,omitempty"` Category string `json:"category,omitempty"` ContentAvailable int `json:"content-available,omitempty"` Sound string `json:"sound,omitempty"` } Badge 应该对应badge_type,应该参考腾讯信鸽文档。如果写成badge角标没反应