Skip to content

Releases: ZhukV/AppleApnPush

Fix bugs for feedback service

11 Nov 11:39
Compare
Choose a tag to compare
v2.2.2

Fix feedbcack service bugs

Fix for PHP 5.3

09 Nov 18:43
Compare
Choose a tag to compare

Fix typos in Connection object, for PHP 5.3 (Array definition)

Create certificate system

09 Nov 18:52
Compare
Choose a tag to compare

Create a new certificate system.

Before create connection, you should create a certificate and inject it to connection.

This feature was be created, because in any system, the certificated saved to database or another storages, and we should be able to get certificate content and inject to connection.

Create a base certificate and connection:

use Apple\ApnPush\Certificate\Certificate;
use Apple\ApnPush\Notification\Connection;

$certificate = new Certificate('/path/to/certificate.pem', 'you_passphrase');
$connection = new Connection($certificate, $sandbox);

And create a certificate from content:

use Apple\ApnPush\Certificate\ContentCertificate;
use Apple\ApnPush\Notification\Connection;

$content = $storage->getCertificateContent('...');
$passPhrase = $storage->getCertificatePassPhrase('...');

$certificate = new ContentCertificate($content, $passPhrase);
$connection = new Connection($certificate, $sanbox);

How it works (ContentCertificate):

Before connect to Apple Apns, system create a temporary file in you system and put certificate content to it. If connection closed, certificate file will be deleted (control on __destruct).

v2.1.6

19 Aug 11:54
Compare
Choose a tag to compare

Add categories to aps data