PushNotificationsError

public enum PushNotificationsError : Int, Error

Used to indicate failures that may occur during IBMPushNotifications operations.

  • A failure occurred when attempting to connect to the Push service.

    Declaration

    Swift

    case ConnectionFailure = 1
  • The provided Notification object contains invalid data.

    Declaration

    Swift

    case InvalidNotification = 2
  • Could not obtain authorization from the Push service. Check that the pushAppGuid and pushppSecret in the PushNotifications initializer are correct.

    Declaration

    Swift

    case Unauthorized = 401
  • The Push service is not available on the server.

    Declaration

    Swift

    case NotFound = 404
  • The Push service was not able to process the request. If posting a notification, check that the sent Notification object contains the correct data.

    Declaration

    Swift

    case ServerError = 500