|
楼主 |
发表于 2017-5-11 16:36:29
|
显示全部楼层
- payload.resetOptionsTimeToLive(86400);
- payload.resetOptionsApnsProduction(apnsProduction);
- SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
- Calendar nowTime = Calendar.getInstance();
- nowTime.add(Calendar.MINUTE, 1);
- String scheduleTime =sdf.format(nowTime.getTime());
- ScheduleResult result = jpushClient.createSingleSchedule(UUID.randomUUID().toString().replaceAll("-", ""), scheduleTime, payload);
- return result;
复制代码
我看了下代码 sdf.format(nowTime.getTime()); 没有设置延迟啊?不懂请教了 |
|