示例#1
0
    @Override
    public void handleRejectedNotification(
        final PushManager<? extends SimpleApnsPushNotification> pushManager,
        final SimpleApnsPushNotification notification,
        final RejectedNotificationReason reason) {

      logger.error(
          "[%s] %s was rejected with rejection reason %s\n",
          pushManager.getName(), notification, reason);
    }
示例#2
0
    @Override
    public void handleFailedConnection(
        final PushManager<? extends SimpleApnsPushNotification> pushManager,
        final Throwable cause) {

      logger.error(pushManager.getName() + " failed to connect Apple APNS server. ", cause);

      if (cause instanceof SSLHandshakeException) {
        // This is probably a permanent failure, and we should shut down
        // the PushManager.
      }
    }