Skip to content

Commit

Permalink
rm temp GCM servers URL, close #7
Browse files Browse the repository at this point in the history
GCM servers seem to have been updated
  • Loading branch information
Minishlink committed Jul 28, 2016
1 parent 26490e9 commit 7f56de6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/WebPush.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
class WebPush
{
const GCM_URL = 'https://android.googleapis.com/gcm/send';
const TEMP_GCM_URL = 'https://gcm-http.googleapis.com/gcm';

/** @var Browser */
protected $browser;
Expand Down Expand Up @@ -215,9 +214,6 @@ private function prepareAndSend(array $notifications, $serverType)
}

if ($serverType === 'GCM') {
// FUTURE remove when Chrome servers are all up-to-date
$endpoint = str_replace(self::GCM_URL, self::TEMP_GCM_URL, $endpoint);

$headers['Authorization'] = 'key='.$this->apiKeys['GCM'];
}

Expand Down

0 comments on commit 7f56de6

Please sign in to comment.