Closed mwkirk closed 11 years ago
From akin...@gmail.com on April 27, 2011 20:31:45 I am also interested in this. Specifically the expiry information. We want our Notifications to expire at a certain time after they are initially created. http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingWIthAPS/CommunicatingWIthAPS.html%23//apple_ref/doc/uid/TP40008194-CH101-SW4
From sype...@gmail.com on September 09, 2011 19:17:00 Note: current library does use the enhanced notification format, but the identifier and expiry values are hardcoded. Future enhancements could allow for those two values to be customized.
From sype...@gmail.com on September 15, 2011 07:24:30 Fixed in 2.0 Beta 4. See new Payload.setExpiry(..) method, and the introduction of a new identifier parameter in a few PushNotificationManager.sendNotification(..) methods. Automatic identifier generation is also supported in the javapns.notification.transmission classes.
See issue #47 for enhancement request related to error packets.
Original author: wguo1...@gmail.com (April 12, 2011 21:05:54)
I do not see the support for enhanced format from the source code. Did I miss something?
I guess I can modify getMessage() for enhanced format, but not sure how to handle No-Error or any timeout needed to retrieve the response.
Any sample code will be appreciated.
Weiping
Original issue: http://code.google.com/p/javapns/issues/detail?id=46