麻烦帮你看下,在极光网站生成环境能收到通知,C# 推送收不到

chenyun
2017-06-22 07:17 1.9k 0
string APP_KEY = "04bd460f6bdd561d26c7d660",MASTER_SECRET = "bb8527fe23c1a8190c1bba88";
JPushClient pushClient = new JPushClient(APP_KEY, MASTER_SECRET);
PushPayload pushPayLoad = new PushPayload();
pushPayLoad.platform = Platform.all();
pushPayLoad.audience = Audience.s_alias("huangcl");
pushPayLoad.notification = Notification.android("测试数据", "测试");
pushPayLoad.message = cn.jpush.api.push.mode.Message.content("正在做测试");

pushClient.SendPush(pushPayLoad);

1个回答

热门排序
  • 收不到消息的问题:请提供推送的消息的msgid(MessageID)和收不到这条消息的设备的registrationID(在客户端获取,无论以何种方式做推送,该信息必须提供)信息如何获取: https://community.jiguang 展示全部