View Source Pigeon.APNS.Error (Pigeon v1.6.2)

Defines APNS error responses

Summary

Functions

If enabled, logs a notification and its error response.

Types

@type error_response() ::
  :bad_collapse_id
  | :bad_device_token
  | :bad_expiration_date
  | :bad_message_id
  | :bad_priority
  | :bad_topic
  | :device_token_not_for_topic
  | :duplicate_headers
  | :idle_timeout
  | :invalid_push_type
  | :missing_device_token
  | :missing_topic
  | :payload_empty
  | :topic_disallowed
  | :bad_certificate
  | :bad_certificate_environment
  | :expired_provider_token
  | :forbidden
  | :invalid_provider_token
  | :missing_provider_token
  | :bad_path
  | :method_not_allowed
  | :unregistered
  | :payload_too_large
  | :too_many_provider_token_updates
  | :too_many_requests
  | :internal_server_error
  | :service_unavailable
  | :shutdown
  | :unknown_error

Functions

Link to this function

log(reason, notification)

View Source

If enabled, logs a notification and its error response.