Skip to content

Commit e03f44a

Browse files
committed
Remove all mentions of old GCM auth
1 parent 339f45e commit e03f44a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ $notifications = [
4444
'payload' => 'hello !',
4545
], [
4646
'subscription' => Subscription::create([
47-
'endpoint' => 'https://android.googleapis.com/gcm/send/abcdef...', // Chrome
47+
'endpoint' => 'https://fcm.googleapis.com/fcm/send/abcdef...', // Chrome
4848
]),
4949
'payload' => null,
5050
], [
@@ -117,10 +117,9 @@ You can specify your authentication details when instantiating WebPush. The keys
117117

118118
use Minishlink\WebPush\WebPush;
119119

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

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

0 commit comments

Comments
 (0)