Skip to content

Simple Kohana module to support Apple Push Notifications

Notifications You must be signed in to change notification settings

avgs/kohana-apn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

  1. Create a certificate directory in your application/ folder
  2. Copy your pem file (which includes) its private key in application/certificate
  3. Copy modules/apn/config/apn.php into application/config/apn.php and edit it

$apn = APN::factory('name of the application');

public function send($deviceToken, $body, $identifier = null, $expiry = null)

Simple usage: $apn->send("device token here", "alert text"); or $apn->send(array("device1", "device2"), "alert text");

Advanced usage: $body = array( 'aps' => array( 'alert' => 'APN test', 'sound' => 'default' ) );

$apn->send("device token here", $body); or $apn->send(array("device1", "device2"), "alert text");

About

Simple Kohana module to support Apple Push Notifications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages