Skip to content

Commit 7f56de6

Browse files
committed
rm temp GCM servers URL, close #7
GCM servers seem to have been updated
1 parent 26490e9 commit 7f56de6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/WebPush.php

-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
class WebPush
2121
{
2222
const GCM_URL = 'https://android.googleapis.com/gcm/send';
23-
const TEMP_GCM_URL = 'https://gcm-http.googleapis.com/gcm';
2423

2524
/** @var Browser */
2625
protected $browser;
@@ -215,9 +214,6 @@ private function prepareAndSend(array $notifications, $serverType)
215214
}
216215

217216
if ($serverType === 'GCM') {
218-
// FUTURE remove when Chrome servers are all up-to-date
219-
$endpoint = str_replace(self::GCM_URL, self::TEMP_GCM_URL, $endpoint);
220-
221217
$headers['Authorization'] = 'key='.$this->apiKeys['GCM'];
222218
}
223219

0 commit comments

Comments
 (0)