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
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 |