iPhone-iOS and Android push notification script - PHP code
Here I am presenting before you - how to perform the push notification process with PHP code which I have recently gone through. Based on url GET parameter ( "type" ), the script will automatically execute the respective iOS or Android push notification process. //*** Android Push Notification if( isset($_GET['type']) && ($_GET['type'] == 'android')){ //*** Your API access key from Google Cloud Messaging( GCM ) define( 'API_ACCESS_KEY', 'YOUR GCM KEY' ); $registrationIds = array("YOUR DEVICE IDs" ); //*** Configure the bundle $msg = array ( 'message' => 'Your message for push.', 'title' => 'Your title', 'subtitle' => 'Your subtitle', 'tickerText' => 'Your ticker text here', 'vibrate' => 1, 'sound' => 1 ); $fields = array ( 'reg...