github 地址
说明
java 服务器端集成 华为推送 工具包
官方文档
使用
示例
SendClient sender = new SendClient('clientSecret','clientId');
Payload payload = Payload.newInstance()
.addMsg(Message.newInstance()
.addType(MessageType.PASSTHROUGH)
.addBody('测试推送content', '测试推送title')
.addAction(ActionType.URL, 'https://www.baidu.com')
.build())
.addExt(Ext.newInstance()
.addCustomize(map)
.build())
.build();
sender.push(new String[] { 'targets' }, payload);





































苏公安网备 32011402010933号