2017-04-18 56 views
0

我试图用OneSignal安排通知给未来计划通知的限制以后,问题是,如果我安排的通知,send_after例如到2019 API返回此消息这是对OneSignal

Schedule Notifications may not be scheduled so far in the future. 

这是设置例如:

var message = { 
        app_id: config.get('oneSignal:appId'), 
        headings: {"en": "head"}, 
        contents: {"en": "content"}, 
        filters: [ 
         {"field": "tag", "key": "email", "relation": "=", "value": user.mail} 
        ], 
        send_after: "2019-06-01 14:00:00 GMT-0700" 
       }; 

这是响应消息

Response: 
{ errors: [ 'Schedule Notifications may not be scheduled so far in the future.' ] } 

哪个是限制?而且有可能'延伸'?

谢谢

回答

1

一次问这个问题。这是响应

enter image description here

+0

几个测试后安排的通知的最大时间是364年 – Hanzo