hi i have written a java class to send push notification to APNS.
But i am getting Caused by: java.net.ConnectException: Connection refused: connect exception. Please help me ti fix this. I have given the certificates, password correctly.
ApnsService service = APNS.newService().withCert("D:/iOS/Certificates.p12", "Karthik123")
System.out.println("Service Created : "+service);
String payload = APNS.newPayload().alertBody(
"This is a sample Notification Message!").build();
System.out.println("Payload Created : "+payload);
String token = "b7ae2ef781d2b4406c9ebf6011ac733c95b59867";
Thanks for your reply. I am using JavaPNS. i have created payload and sent. Also i am getting successful transmission to apple push notification server. But it is not received in the iPhone. What will be the issue.
We find this kind of rampant individuality very disturbing. But not this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners