Friday, September 11, 2015

Exploring Java PNS

The source and the libraries required were downloaded form the link from the reference section. this is a library which allows us to send APNS messages from java library. 
JavaPNS require 1.5 runtime or later. 

there are few dependancies with this, and they are 

bcprov-jdk15-146.jar => Bouncy Castle library used for Secure connection with the Apple server
log4j-1.2.17.jar => Apache Logging framework 

The above are to be in the class path for this to work along with the Java PNS library jar file which is JavaPNS_2.2.jar

The Java PNS package downloaded also had a test application which is NotificationTest.java 

ran this with the respective arguments and it sent the push message to the app successfully. 


References:

No comments:

Post a Comment