How to retrieve apns error-response

674 views
Skip to first unread message

Bonnie

unread,
Oct 11, 2011, 4:13:11 PM10/11/11
to Java client for Apple Push Notification service (APNs)
I'm pushing EnhancedApnsNotifications through an ApnsService. I would
like to examine the APNS error-response packet. How would I do this?
I've looked through the junits but do not see this use, Thanks.

Mahmood Ali

unread,
Oct 11, 2011, 4:46:42 PM10/11/11
to java-apn...@googlegroups.com
Greetings Bonnie,

Can you look into using the ApnsDelegate.connectionClosed [1]? You can pass your own ApnsDelegate implementation to the service builder. I should probably add more tests ;-).

Hope this helps.

[1] http://notnoop.github.com/java-apns/apidocs/com/notnoop/apns/ApnsDelegate.html#connectionClosed(com.notnoop.apns.DeliveryError, int)

Regards,
- Mahmood

Reply all
Reply to author
Forward
0 new messages