【发布时间】:2012-03-18 09:18:37
【问题描述】:
我已经为开发和临时测试实现了苹果推送通知,它工作正常。现在我即将提交我的 iPhone 应用程序到应用商店。
所以我想知道在服务器端实施和 APNS 认证方面我必须做哪些更改。
我在服务器端开发的APNS实现代码如下:
public class PushNotification
{
private static final String HOST = "gateway.sandbox.push.apple.com";
private static final int PORT = 2195;
private static final int BADGE = intValue;
private static String iPhoneId = "hex-digits";
private static String certificate = "./Development/JavaPNS/src/com/applicationname/pns/privateKey.p12";
private static String passwd = "password@1234";
.
.
.
.
}
【问题讨论】:
标签: iphone ios ssl-certificate apple-push-notifications production-environment