PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Yasir Siddiqui   PHP Apple Push Notification Service   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: PHP Apple Push Notification Service
Send push notifications to Apple devices
Author: By
Last change:
Date: 10 years ago
Size: 397 bytes


Class file image Download

// set enovirnment and cretificate path
$push = new PushNotification("sandbox","./cert.pem");
// set device token
$push->setDeviceToken("DEVICE TOKEN HERE");
// Set pass phrase if any
$push->setPassPhrase("YOUR pass phrase here");
// Set badge
// Set message body
$push->setMessageBody("Message body here");