sajidhalai / javapns

Automatically exported from code.google.com/p/javapns
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 reported on code.google.com by dipakcpa...@gmail.com on 6 Aug 2012 at 11:03

GoogleCodeExporter commented 9 years ago
Please provide all logs generated by JavaPNS.

Original comment by sype...@gmail.com on 11 Aug 2012 at 6:00

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Closing for lack of feedback from original poster.

Original comment by sype...@gmail.com on 8 Sep 2012 at 2:23