如何使用Java向iPhone发送推送通知消息? [英] How to send Push Notification Message to iPhone using Java?

查看:157
本文介绍了如何使用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");


       }
 }

这篇关于如何使用Java向iPhone发送推送通知消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆