Module: RubyPushNotifications::APNS

Defined in:
lib/ruby-push-notifications/apns.rb,
lib/ruby-push-notifications/apns/apns_pusher.rb,
lib/ruby-push-notifications/apns/apns_results.rb,
lib/ruby-push-notifications/apns/apns_connection.rb,
lib/ruby-push-notifications/apns/apns_notification.rb

Overview

Author:

  • Carlos Alonso

Defined Under Namespace

Classes: APNSConnection, APNSNotification, APNSPusher, APNSResults

Constant Summary collapse

NO_ERROR_STATUS_CODE =

No Status Error Code. Represents a successfully sent notification

0
PROCESSING_ERROR_STATUS_CODE =

An error occurred while processing the notification

1
MISSING_DEVICE_TOKEN_STATUS_CODE =

The notification contains no device token

2
MISSING_TOPIC_STATUS_CODE =

The notification is being sent through the plain TCPSocket, rather than the SSL one

3
MISSING_PAYLOAD_STATUS_CODE =

The notification contains no payload

4
INVALID_TOKEN_SIZE_STATUS_CODE =

The given token sice is invalid (!= 32)

5
INVALID_TOPIC_SIZE_STATUS_CODE =

The given topic size is invalid

6
INVALID_PAYLOAD_SIZE_STATUS_CODE =

Payload size is invalid (256 bytes if iOS < 8, 2Kb otherwise)

7
INVALID_TOKEN_STATUS_CODE =

The token is for dev and the env is prod or viceversa, or simply wrong

8
SHUTDOWN_STATUS_CODE =

Connection closed at Appleā€™s end

10
UNKNOWN_ERROR_STATUS_CODE =

Unknown error

255