hms-push-serverdemo-java
hms-push-serverdemo-java copied to clipboard
Java sample code encapsulates APIs of the HUAWEI Push Kit server. It provides many sample programs for your reference or usage.
提个简单的建议
**Description** SDK的封装可以参考小米的push-SDK **Expected behavior** 1.希望SDK提供异步操作的方法 2.希望对消息的返回体封装丰富一些,后面会提供demo(毕竟这个实际影响业务编写) 3.希望增加metric接口方便线上监控 **Current behavior** 1.目前SDK里面集成fastjson这种有安全漏洞的序列化依赖 2.目前SDK对消息的返回体真是处理的太粗糙了 **Screenshots** 定义了一个SendResponse返回体,只有80000000才会封装 1.对于非80000000的返回code和message没有封装(特别是message竟然没有了,影响实际业务编写) 2.对于http的exception,直接把状态码给。。。。(这个503频控让业务咋搞,实在不行咱学苹果不限速了)  **Environment** all Environment **Other** 一步步来,看好你
| appid | 应用ID,从应用信息中获取 | | appsecret | 应用访问密钥,从应用信息中获取 | 请问readme中的appsecret哪里获取?配置只有api_key和client_secret,到底是哪个?
根据文档:https://developer.huawei.com/consumer/cn/doc/development/HMSCore-References/https-send-api-0000001050986197#ZH-CN_TOPIC_0000001700731289__p17267191111615 存在80300013错误码,但ResponceCodeProcesser类中不存在,期望加上。 ``` put(80300013, "Invalid Receipt address"); ```
原代码: ``` public Builder addPayloadAps(Aps aps) { this.aps = aps; return this; } public Builder addPayload(Aps aps) { this.aps = aps; return this; } ``` 两个方法内容相同。ApnsConfig.Builder中缺乏setAps()方法,addPayloadAps()和addPayload()方法容易让人觉得和参数payloadAps和payload相关,容易有误解。建议改为: ``` public Builder setAps(Aps...
要配置哪些验证参数,这些参数哪里查的到,改到代码什么地方?
对ProfileId的判断如下:  校验工具类代码如下:  当profileId 小于 64时, 会抛出异常。辛苦关注下该问题,会影响通知的正常发送。
Bumps httpclient from 4.5.7 to 4.5.13. [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a...
Bumps [guava](https://github.com/google/guava) from 26.0-jre to 29.0-jre. Release notes Sourced from guava's releases. 29.0 Maven <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>29.0-jre</version> <!-- or, for Android: --> <version>29.0-android</version> </dependency> Javadoc 29.0-jre 29.0-android JDiff 29.0-jre...
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.1. Release notes Sourced from junit's releases. JUnit 4.13.1 Please refer to the release notes for details. JUnit 4.13 Please refer to the release notes...
那样使用起来不是方便很多嘛...