diff --git a/composer.json b/composer.json index cd1cb83..896e040 100755 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "php-gcm/php-gcm", + "name": "sakhcom/php-gcm", "description": "A PHP library for sending GCM messages", "keywords": ["library", "gcm", "php", "android"], "homepage": "https://github.com/lkorth/php-gcm", diff --git a/src/PHP_GCM/Constants.php b/src/PHP_GCM/Constants.php index 7e5379f..81354f4 100755 --- a/src/PHP_GCM/Constants.php +++ b/src/PHP_GCM/Constants.php @@ -25,7 +25,7 @@ final class Constants { /** * Endpoint for sending messages. */ - public static $GCM_SEND_ENDPOINT = 'https://android.googleapis.com/gcm/send'; + public static $GCM_SEND_ENDPOINT = 'https://fcm.googleapis.com/fcm/send'; /** * HTTP parameter for registration id. @@ -179,4 +179,4 @@ final class Constants { * JSON-only field sent by GCM when a message was successfully sent. */ public static $JSON_MESSAGE_ID = 'message_id'; -} \ No newline at end of file +}