Skip to content

Commit

Permalink
Remove all mentions of old GCM auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Minishlink committed Aug 2, 2020
1 parent 339f45e commit e03f44a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ $notifications = [
'payload' => 'hello !',
], [
'subscription' => Subscription::create([
'endpoint' => 'https://android.googleapis.com/gcm/send/abcdef...', // Chrome
'endpoint' => 'https://fcm.googleapis.com/fcm/send/abcdef...', // Chrome
]),
'payload' => null,
], [
Expand Down Expand Up @@ -117,10 +117,9 @@ You can specify your authentication details when instantiating WebPush. The keys

use Minishlink\WebPush\WebPush;

$endpoint = 'https://android.googleapis.com/gcm/send/abcdef...'; // Chrome
$endpoint = 'https://fcm.googleapis.com/fcm/send/abcdef...'; // Chrome

$auth = [
'GCM' => 'MY_GCM_API_KEY', // deprecated and optional, it's here only for compatibility reasons
'VAPID' => [
'subject' => 'mailto:[email protected]', // can be a mailto: or your website address
'publicKey' => '~88 chars', // (recommended) uncompressed public key P-256 encoded in Base64-URL
Expand Down

0 comments on commit e03f44a

Please sign in to comment.