我尝试发送带有过期时间间隔的推送,但它没有发送到服务
long weekInterval = 60*60*24*7; // 1 week
// Send push notification with expiration interval
ParsePush push1 = new ParsePush();
push1.setExpirationTime(weekInterval);
push1.setQuery(ParseInstallation.getQuery().whereEqualTo("deviceType", "android"));
push1.setMessage("Season tickets on sale until November 20th");
push1.sendInBackground();
但在服务器端,通知说明是这个
定位:
deviceType is "android" Sending date : November 14th, 2014 at 5:42 PM Expiration : None Full target : { "deviceType": "android" } Full data : { "alert": "Season tickets on sale until November 20th" }
如您所见,到期时间无
更新: 同样的行为是: 的 setExpirationTimeInterval()
是我的错误还是服务?