【发布时间】:2018-01-25 09:34:21
【问题描述】:
我正在尝试推送通知,但每次收到无效令牌时。 我得到的错误是:
APNS: [1] Invalid token javapns.notification.exceptions.ErrorResponsePacketReceivedException: 收到来自 APNS 服务器的错误响应包:APNS: [1] Invalid token]
PushNotificationPayload payload=PushNotificationPayload.complex();
payload.addAlert("Hello");
PushedNotifications Notify=Push.alert("hiii", "C:\\Users\\Documents\\PushNotification\\APNS.p12", "123456", true, "Device Token ");/*ra*/
PushedNotification.findSuccessfulNotifications(Notify);
NotificationTest.printPushedNotifications(Notify);
System.out.println("Success "+PushedNotification.findSuccessfulNotifications(Notify));
System.out.println("failed "+PushedNotification.findFailedNotifications(Notify));
【问题讨论】:
标签: java ios push-notification