Skip to content

Instantly share code, notes, and snippets.

View chithanh1012's full-sized avatar
💭
I may be slow to respond.

Thanh Nguyen chithanh1012

💭
I may be slow to respond.
View GitHub Profile
@chithanh1012
chithanh1012 / PushNotifications.php
Created August 2, 2016 06:02 — forked from joashp/PushNotifications.php
Simple PHP script to send Android Push Notification, iOS Push Notification and Windows Phone 8 Push Notification
<?php
// Server file
class PushNotifications {
// (Android)API access key from Google API's Console.
private static $API_ACCESS_KEY = 'AIzaSyDG3fYAj1uW7VB-wejaMJyJXiO5JagAsYI';
// (iOS) Private key's passphrase.
private static $passphrase = 'joashp';
// (Windows Phone 8) The name of our push channel.
private static $channelName = "joashp";