diff --git a/composer.json b/composer.json index 999d014..edafc29 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "coreproc/gcm", + "name": "sarehub/gcm", "description": "Google Cloud Messaging library for PHP", "require": { "guzzlehttp/guzzle": "5.*" diff --git a/src/GcmClient.php b/src/GcmClient.php index dfdef22..5ef04a4 100644 --- a/src/GcmClient.php +++ b/src/GcmClient.php @@ -15,7 +15,7 @@ class GcmClient */ private $apiKey; - protected $gcmUrl = 'https://android.googleapis.com/gcm/send'; + protected $gcmUrl = 'https://fcm.googleapis.com/fcm/send'; public function __construct($apiKey) { @@ -57,4 +57,4 @@ public function send(array $data) return new Response($response->json()); } -} \ No newline at end of file +}