mwkirk / javapns

Test import of svn javapns repo from Google Code
3 stars 0 forks source link

Apple Push Notification Expiry Time Issue, getting back-to-back push notifications on Apple Device? #140

Closed mwkirk closed 11 years ago

mwkirk commented 11 years ago

Original author: dipakcpa...@gmail.com (August 06, 2012 11:03:40)

I am sending Push Notification to Apple devices using JavaPNS_2.2.jar library. The notification get send when the device is Online. When the Device if Offline, no notification recieved on Device. But when the Device gets Online again, 5-6 back-to-back notifications recieved on device.

For this I have set the expiry time of 300 seconds, but still I am facing the same problem. My java Code is -

PushNotificationPayload payLoad = PushNotificationPayload.complex();
payLoad.addCustomAlertBody(message);
payLoad.addBadge(1);
payLoad.addSound("default");
payLoad.addCustomAlertActionLocKey("View");
payLoad.addCustomDictionary("user_id", user_id);
payLoad.setExpiry(300);

PushedNotifications notifications = Push.payload(payLoad, "Certificates.p12", "password", true, token);

Please help me to resolve this problem. Thanks in Advance

Original issue: http://code.google.com/p/javapns/issues/detail?id=140

mwkirk commented 11 years ago

From sype...@gmail.com on August 11, 2012 18:00:09 Please provide all logs generated by JavaPNS.

mwkirk commented 11 years ago

From sype...@gmail.com on September 08, 2012 02:23:53 Closing for lack of feedback from original poster.