集成个推,透传消息,ios在线自动会弹出个confirm,这个confirm可以去掉吗
- 发布:2018-03-06 10:45
- 更新:2018-03-06 11:18
- 阅读:1886
最佳回复
9***@qq.com (作者)
下面的代码确实会执行 ---》alert("接收到在线透传消息:");
plus.push.addEventListener("receive", function(msg) {
if(msg.aps) { // Apple APNS message
alert("接收到在线APNS消息:");
} else {
alert("接收到在线透传消息:");
getPushdata(msg);
//弹出显示的消息的ui
if(busying == true) {
return;
}
toggleMenu();
}
}, false);
9***@qq.com (作者)
能分享一份j个推java后端代码嘛,求指点
2018-03-31 12:50
9***@qq.com (作者)
下面是我的java后端代码,请问下是这是透传消息吗?
/**
*/
public class GeTuiPushUtil {
// 定义常量, appId、appKey、masterSecret 采用本文档 "第二步 获取访问凭证 "中获得的应用配置
private static String appId = "ZqenrIEpuQ6ORuEktWvYD6";
private static String appKey = "vYR4bp28VQ7PAddJYAG3j1";
private static String masterSecret = "4NkMiCiac3AmNidmsVgYh6";
private static String host = "http://sdk.open.api.igexin.com/apiex.htm";
@SuppressWarnings("deprecation")
public static boolean pushMessageToList(String title, String message, Map<String, String> extendInfo,
boolean offline, long offlineExpireTime, List<TUserClient> clientList) {
}
private static NotificationTemplate getTransmissionTemplate(String title, String text, String content) {
}
private static APNPayload.DictionaryAlertMsg getDictionaryAlertMsg(String title, String text) {
}
public static void main(String[] args) throws Exception {
}
}
2018-04-12 14:13