1) Get $35 / $25 / $20 / $10 free DigitalOcean Credit.
2) Get DigitalOcean 1 Year Free Trial.
3) Get $100 Credit For 60 Days. $100 Free Credits
1) Get $35 / $25 / $20 / $10 free DigitalOcean Credit.
2) Get DigitalOcean 1 Year Free Trial.
3) Get $100 Credit For 60 Days. $100 Free Credits
<?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"; |
<?php | |
// API access key from Google API's Console | |
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' ); | |
$registrationIds = array( $_GET['id'] ); | |
// prep the bundle | |
$msg = array |