I want to send a Push Notification message to particular iPhone device using Java.
I dont have any idea how to do this.
I have googled on this, they have suggested to use "PayLoad" class but not getting this class from any jar files.
Please anybody can guide me to send the push notification message to iPhone suing Java?
解决方案
Use JavaPNS. Here is an exaple:
import javapns.Push;
public class PushTest {
public static void main(String[] args) {
Push.alert("Hello World!", "keystore.p12", "keystore_password", false, "Your token");
}
}