如何使用Java向iPhone发送推送通知消息?

如何使用Java向iPhone发送推送通知消息?

问题描述:

我想使用Java向特定的iPhone设备发送推送通知消息。

I want to send a Push Notification message to particular iPhone device using Java.

我不知道如何做到这一点。

I dont have any idea how to do this.

我已经搜索了这个,他们建议使用PayLoad类,但不要从任何jar文件中获取此类。

I have googled on this, they have suggested to use "PayLoad" class but not getting this class from any jar files.

请任何人可以指导我发送推送通知消息给iPhone起诉Java吗?

Please anybody can guide me to send the push notification message to iPhone suing Java?

使用 JavaPNS 。这是一个例子:

 import javapns.Push;

 public class PushTest {

       public static void main(String[] args) {

                Push.alert("Hello World!", "keystore.p12", "keystore_password", false, "Your token");


       }
 }