Im try to send a push with Expiration Time Interval but it doesn't send to service
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();
but on server side in description of notification is this
Targeting :
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" }
As you see Expiration is None
UPDATED: The same behaviour is with: setExpirationTimeInterval()
is it my bug or service's?
I think you need to use:
instead of setExpirationTime()
(which sets a specific timestamp instead of a duration)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.