File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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
118118use 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
You can’t perform that action at this time.
0 commit comments