php-apn
  • Function
  • Examples
  • Download

Functions

  • apn_add_token
  • apn_add_tokens
  • apn_close
  • apn_connect
  • apn_feedback
  • apn_feedback_connect
  • apn_free
  • apn_init
  • apn_payload_add_token
  • apn_payload_add_tokens
  • apn_payload_free
  • apn_payload_init
  • apn_payload_set_array
  • apn_payload_set_badge
  • apn_payload_set_body
  • apn_payload_set_expiry
  • apn_payload_set_launch_image
  • apn_payload_set_localized_action_key
  • apn_payload_set_localized_key
  • apn_payload_set_sound
  • apn_send
  • apn_set_array
  • apn_set_certificate
  • apn_set_mode
  • apn_set_private_key

Function apn_set_mode

Sets connection mode

Each connection limited to one of two modes, each with its own assigned IP address:

APN_PRODUCTION - Use the production mode when building the production version of the provider application. This mode uses gateway.push.apple.com, outbound TCP port 2195.

APN_SANDBOX - Use the sandbox mode for initial development and testing of the provider application. It provides the same set of services as the production mode. The sandbox mode also acts as a virtual device, enabling simulated end-to-end testing. This mode uses gateway.sandbox.push.apple.com, outbound TCP port 2195.

You must get separate certificates for the sandbox mode and the production mode.

Default mode is :APN_PRODUCTION

Category: Apple Push Notification Service
License: PHP 3.01
Since: 1.0.0
Located at documentation.php

Parameters summary

resource $apn Apple Push Notification Resource returned by apn_init(). If a non-resource is used for the apn, an error of level E_WARNING will be emitted
integer $mode Mode APN_PRODUCTION or APN_SANDBOX
php-apn API documentation generated by ApiGen 3.0dev