向时间线发送内容时镜像API延迟
似乎有时时间表项(只是文本)会立即到达,而有时却要花很长时间……是否有办法在恰好正确的时间发送?
It seems that sometimes timeline items (just text) arrive instantly and other times they take forever... Is there a way to send one at precisely the right time?
您可以在准确的时间发送通知.
You can send the notification at a precise time.
timelineItem.getNotification()
.setDeliveryTime(new DateTime(oneMinuteInFuture.getTime()));
这是一个Java示例,其中oneMinuteInFuture是设置为现在一分钟后的Calendar对象.
That's a java example, where oneMinuteInFuture is a Calendar object set to one minute after now.
执行此操作时,会立即将卡插入时间轴,但是通知会延迟到指定时间.因此,该卡马上就进入了,一分钟后,我听到了提示音.
What happens when you do this is the card is inserted in the timeline immediately, but the notification is delayed until the specified time. So the card goes in right away and one minute later I get a chime.
有不可接受的问题为此,您可能要加注星标并关注它,看来此功能将来可能会更改.
There is an unaccepted issue related to this at the issue tracker you might want to star and follow, it appears that this functionality might change in the future.