Skip to content

Instantly share code, notes, and snippets.

View code2be's full-sized avatar
🎯
Focusing

Ahmed Hosny code2be

🎯
Focusing
  • Egypt
  • 14:50 (UTC +02:00)
View GitHub Profile
@code2be
code2be / gist:cdd497c4998a9ab552ac4afa98d8cdbd
Last active October 25, 2016 12:04 — forked from prime31/gist:5675017
Simple PHP code to send FCM Push Notification
<?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