极光推送 tag
private void initJpush() {
//TODO 极光推送
// JPushInterface.setDebugMode(true);
JPushInterface.init(this);
JPushInterface.setAlias(this, 400, DeviceUtils.getDeviceId());//TODO 设置极光推送的别名; 推送靠后台推送消息 根据设备id 推送到单个用户
Set<String> set = new HashSet<>();
set.add(DeviceUtils.getDeviceId());
JPushInterface.setTags(this, 444, set);
}
网友评论