javapns-jdk16
javapns-jdk16 copied to clipboard
APNS Push Notification Feedback Service Connection Timeout
Hi, I have used java APNS sdk version 2.3.1 to send push notification & getting feedback from APNS. We have two environment i.e. Local(Personal Machine) & Development(Linux Virtual Machine installed on AWS Cloud), in which we are using same APNS certificate & key (Sandbox). Push Notification working properly in both environment but Push Feedback is working only in Local Environment but not working in Development environment. Error: Communication exception: java.net.ConnectException: Connection timed out occur while using Feedback service in Development environment.
Code is given below to use Feedback service.
try { List<Device> devices = Push.feedback(externalCredentials.getKeyStore(), externalCredentials.getProperty(APNS_SECRET_KEY), false);
if(devices != null && devices.size() != 0){
System.out.println("feedback service");
}
}
catch (Exception e) { log.error("Exception "+ e.getMessage());
}
Please give a suggestion.