Documentation ¶
Index ¶
- func SendBroadcast(u *push.Umeng) (string, error)
- func SendCustomizedcastWithAlias(u *push.Umeng, aliasType string, alias string) (string, error)
- func SendCustomizedcastWithFileId(u *push.Umeng, aliasType string, fileId string) (string, error)
- func SendFilecast(u *push.Umeng, fileId string) (string, error)
- func SendGroupcast(u *push.Umeng, tag string) (string, error)
- func SendListcast(u *push.Umeng, deviceTokens []string) (string, error)
- func SendUnicast(u *push.Umeng, deviceToken string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendCustomizedcastWithAlias ¶
SendCustomizedcastWithAlias 自定义alias播属于单播类消息,返回msg_id
func SendCustomizedcastWithFileId ¶
SendCustomizedcastWithFileId 自定义文件播属于任务类消息,返回task_id
func SendFilecast ¶
SendFilecast 文件播推送需要先上传文件得到file_id。同样内容的file_id可以缓存使用(友盟建议缓存不超过3个月)。
func SendGroupcast ¶
SendGroupcast 分组推送的条件过滤功能十分强大,可以按照各种维度进行筛选 这里以过滤标签维度作为示例 更多条件过滤设置请参考友盟官方文档
func SendListcast ¶
SendListcast 列播推送必须指定device_tokens。可以使用 SetDeviceTokenList 或者 SetDeviceTokens方法设置
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.