meizupush / javasdk Goto Github PK
View Code? Open in Web Editor NEW魅族开放平台PUSH系统服务端JAVA版本SDK
魅族开放平台PUSH系统服务端JAVA版本SDK
我用的是推送平台上注册时申请的AppID,AppKey,AppSecret,在进行Push推送时,魅族服务端返回这个错误,请问具体是什么原因呢?而且我通过开发者推送平台上使用同样的三个AppId,AppKey,AppSecret推送能成功。
透传消息,title: “”测试Title” content:“1” offline: false, 其他默认,然后提示透传超过限制,不知道哪出了问题
账户管理中可以更改主账户,无需重新申请。
之前使用的自定义推送, clicktype=3. 现在因为安卓12兼容问题改成了clciktype=1, 直接传activity, 但是发现在clicktype=1的时候再用parameters传参数会得到error code 1005, “参数错误请参考api文档”,但是文档对这个parameters参数也没有详细说明, 想请问这个问题怎么解决, 如果我想在客户端用getIntent().getStringExtra()来取参数,后端应该怎么传值
Push SDK依赖okhttp3以上版本,应用依赖版本更低会有冲突。
在锁屏状态下可以收到推送消息。如遇收不到消息的情况请按照问题排查方法排查,或联系工作人员。
在收不到推送消息时,可以按照以下方法进行排查:
1.订阅关系及开关排查:【配置管理】-【问题排查】查询设备在线、订阅关系
2.系统权限排查:【手机管家】-【权限管理】-【通知管理】查询通知栏消息是否打开
3.以上两个排查均无异常,请联系工作人员
一脸懵逼,给我一个下载SDK链接,文档中全是说用远程仓库集成的。也没有一个Demo。而且集成了其他几家,倒是说一下如果不需要那些如何拆分啊
魅族推送消息暂时不支持自定义通知提示,但是在高级设置中的设置通知提醒类型(震动、闪灯、声音)。用户收到消息时优先由系统设置项控制是否按照指定类型提醒。
相同的内容,有时候会返回“内容不支持标签”的错误,有时候返回成功,不是必现。消息内容中带有'<'和'>'。
不错,正在学习
Pushmanager没有clear所有通知的方法,调系统的notification的cancel无法去掉。
不一定引入,后续会考虑去掉。
全部都会转为string
没有提供相关接口,只判断是否为Flyme系统。
if (SUCCESS_CODE.equals(code)) {
Map<Integer, List<String>> respTarget = new HashMap<Integer, List<String>>();
if (StringUtils.isNotBlank(value)) {
respTarget = JSONObject.parseObject(value, Map.class);
}
return ResultPack.succeed(code, msg, PushResult.build(msgId, respTarget));
} else {
return ResultPack.failed(code, msg);
}
sdk的代码中构造出的respTarget的map调用了fastjson的parseObject方式以后,key的类型实际上为String,但是声明的时候却是Integer,导致对这个map的访问出错。如下:
String pushId = "abcdefg";
IFlymePush push = new IFlymePush("key");
UnVarnishedMessage message = new UnVarnishedMessage.Builder().appId(appId).content("test content2").build();
List<String> pushIds = new ArrayList<>();
pushIds.add(pushId);
ResultPack<PushResult> result = push.pushMessage(message, pushIds);
Map<Integer, List<String>> map = result.value().getRespTarget();
for (Map.Entry<Integer, List<String>> entry : map.entrySet()) {
System.out.println(entry.getKey() + " " + entry.getValue());
}
System.out.println(map.containsKey(110003));
for循环中打印出了key为110003,但是最后一行却打印出了false。
魅族推送SDK适用所有安卓系统,仅在Flyme系统上有系统级的推送服务,包括基于YunOS的Flyme系统,及安装了Flyme系统的非魅族手机。在与其他推送SDK同时集成时不会有冲突。
App ID和App Key统一在Push平台上注册应用并生成,已注册应用可以在【配置管理】-【应用配置】进行查询。应用商店生成的App ID和App Key与Push平台不一致,需新在Push.meizu.com重新创建生成。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.