@firebase/messaging 0.12.4-canary.f3067f72d → 0.12.4-canary.f497a400a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.esm.js +4 -4
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/esm/index.esm2017.js +4 -4
- package/dist/esm/index.esm2017.js.map +1 -1
- package/dist/esm/index.sw.esm2017.js.map +1 -1
- package/dist/esm/src/api.d.ts +3 -3
- package/dist/esm/src/interfaces/public-types.d.ts +10 -10
- package/dist/index-public.d.ts +13 -13
- package/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.sw.cjs.map +1 -1
- package/dist/internal.d.ts +13 -13
- package/dist/private.d.ts +13 -13
- package/dist/src/api.d.ts +3 -3
- package/dist/src/interfaces/public-types.d.ts +10 -10
- package/dist/sw/index-public.d.ts +10 -10
- package/dist/sw/internal.d.ts +10 -10
- package/dist/sw/private.d.ts +10 -10
- package/package.json +7 -7
package/dist/internal.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export declare function deleteToken(messaging: Messaging): Promise<boolean>;
|
|
|
25
25
|
/**
|
|
26
26
|
* Options for features provided by the FCM SDK for Web. See {@link
|
|
27
27
|
* https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#webpushfcmoptions |
|
|
28
|
-
* WebpushFcmOptions}
|
|
28
|
+
* WebpushFcmOptions}.
|
|
29
29
|
*
|
|
30
30
|
* @public
|
|
31
31
|
*/
|
|
@@ -55,15 +55,15 @@ export declare type _FirebaseMessagingName = 'messaging';
|
|
|
55
55
|
export declare function getMessaging(app?: FirebaseApp): Messaging;
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
|
-
* Subscribes the {@link Messaging} instance to push notifications. Returns
|
|
58
|
+
* Subscribes the {@link Messaging} instance to push notifications. Returns a Firebase Cloud
|
|
59
59
|
* Messaging registration token that can be used to send push messages to that {@link Messaging}
|
|
60
60
|
* instance.
|
|
61
61
|
*
|
|
62
|
-
* If
|
|
62
|
+
* If notification permission isn't already granted, this method asks the user for permission. The
|
|
63
63
|
* returned promise rejects if the user does not allow the app to show notifications.
|
|
64
64
|
*
|
|
65
65
|
* @param messaging - The {@link Messaging} instance.
|
|
66
|
-
* @param options - Provides an optional vapid key and an
|
|
66
|
+
* @param options - Provides an optional vapid key and an optional service worker registration.
|
|
67
67
|
*
|
|
68
68
|
* @returns The promise resolves with an FCM registration token.
|
|
69
69
|
*
|
|
@@ -72,18 +72,18 @@ export declare function getMessaging(app?: FirebaseApp): Messaging;
|
|
|
72
72
|
export declare function getToken(messaging: Messaging, options?: GetTokenOptions): Promise<string>;
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
|
-
* Options for {@link getToken}
|
|
75
|
+
* Options for {@link getToken}.
|
|
76
76
|
*
|
|
77
77
|
* @public
|
|
78
78
|
*/
|
|
79
79
|
export declare interface GetTokenOptions {
|
|
80
80
|
/**
|
|
81
|
-
* The public server key provided to push services.
|
|
82
|
-
* authenticate
|
|
81
|
+
* The public server key provided to push services. The key is used to
|
|
82
|
+
* authenticate push subscribers to receive push messages only from sending servers that hold
|
|
83
83
|
* the corresponding private key. If it is not provided, a default VAPID key is used. Note that some
|
|
84
84
|
* push services (Chrome Push Service) require a non-default VAPID key. Therefore, it is recommended
|
|
85
85
|
* to generate and import a VAPID key for your project with
|
|
86
|
-
* {@link https://firebase.google.com/docs/cloud-messaging/js/client#
|
|
86
|
+
* {@link https://firebase.google.com/docs/cloud-messaging/js/client#configure_web_credentials_in_your_app | Configure Web Credentials with FCM}.
|
|
87
87
|
* See
|
|
88
88
|
* {@link https://developers.google.com/web/fundamentals/push-notifications/web-push-protocol | The Web Push Protocol}
|
|
89
89
|
* for details on web push services.
|
|
@@ -93,7 +93,7 @@ export declare interface GetTokenOptions {
|
|
|
93
93
|
* The service worker registration for receiving push
|
|
94
94
|
* messaging. If the registration is not provided explicitly, you need to have a
|
|
95
95
|
* `firebase-messaging-sw.js` at your root location. See
|
|
96
|
-
* {@link https://firebase.google.com/docs/cloud-messaging/js/client#
|
|
96
|
+
* {@link https://firebase.google.com/docs/cloud-messaging/js/client#access_the_registration_token | Access the registration token}
|
|
97
97
|
* for more details.
|
|
98
98
|
*/
|
|
99
99
|
serviceWorkerRegistration?: ServiceWorkerRegistration;
|
|
@@ -127,7 +127,7 @@ export declare function isSupported(): Promise<boolean>;
|
|
|
127
127
|
* Message payload that contains the notification payload that is represented with
|
|
128
128
|
* {@link NotificationPayload} and the data payload that contains an arbitrary
|
|
129
129
|
* number of key-value pairs sent by developers through the
|
|
130
|
-
* {@link https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification | Send API}
|
|
130
|
+
* {@link https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification | Send API}.
|
|
131
131
|
*
|
|
132
132
|
* @public
|
|
133
133
|
*/
|
|
@@ -156,7 +156,7 @@ export declare interface MessagePayload {
|
|
|
156
156
|
*/
|
|
157
157
|
collapseKey: string;
|
|
158
158
|
/**
|
|
159
|
-
* The message
|
|
159
|
+
* The message ID of a message.
|
|
160
160
|
*/
|
|
161
161
|
messageId: string;
|
|
162
162
|
}
|
|
@@ -175,8 +175,8 @@ export declare interface Messaging {
|
|
|
175
175
|
export { NextFn }
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
|
-
* Display notification details.
|
|
179
|
-
* {@link https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification | Send API}
|
|
178
|
+
* Display notification details. Details are sent through the
|
|
179
|
+
* {@link https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification | Send API}.
|
|
180
180
|
*
|
|
181
181
|
* @public
|
|
182
182
|
*/
|
package/dist/private.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export declare function deleteToken(messaging: Messaging): Promise<boolean>;
|
|
|
25
25
|
/**
|
|
26
26
|
* Options for features provided by the FCM SDK for Web. See {@link
|
|
27
27
|
* https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#webpushfcmoptions |
|
|
28
|
-
* WebpushFcmOptions}
|
|
28
|
+
* WebpushFcmOptions}.
|
|
29
29
|
*
|
|
30
30
|
* @public
|
|
31
31
|
*/
|
|
@@ -52,15 +52,15 @@ export declare interface FcmOptions {
|
|
|
52
52
|
export declare function getMessaging(app?: FirebaseApp): Messaging;
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
-
* Subscribes the {@link Messaging} instance to push notifications. Returns
|
|
55
|
+
* Subscribes the {@link Messaging} instance to push notifications. Returns a Firebase Cloud
|
|
56
56
|
* Messaging registration token that can be used to send push messages to that {@link Messaging}
|
|
57
57
|
* instance.
|
|
58
58
|
*
|
|
59
|
-
* If
|
|
59
|
+
* If notification permission isn't already granted, this method asks the user for permission. The
|
|
60
60
|
* returned promise rejects if the user does not allow the app to show notifications.
|
|
61
61
|
*
|
|
62
62
|
* @param messaging - The {@link Messaging} instance.
|
|
63
|
-
* @param options - Provides an optional vapid key and an
|
|
63
|
+
* @param options - Provides an optional vapid key and an optional service worker registration.
|
|
64
64
|
*
|
|
65
65
|
* @returns The promise resolves with an FCM registration token.
|
|
66
66
|
*
|
|
@@ -69,18 +69,18 @@ export declare function getMessaging(app?: FirebaseApp): Messaging;
|
|
|
69
69
|
export declare function getToken(messaging: Messaging, options?: GetTokenOptions): Promise<string>;
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
|
-
* Options for {@link getToken}
|
|
72
|
+
* Options for {@link getToken}.
|
|
73
73
|
*
|
|
74
74
|
* @public
|
|
75
75
|
*/
|
|
76
76
|
export declare interface GetTokenOptions {
|
|
77
77
|
/**
|
|
78
|
-
* The public server key provided to push services.
|
|
79
|
-
* authenticate
|
|
78
|
+
* The public server key provided to push services. The key is used to
|
|
79
|
+
* authenticate push subscribers to receive push messages only from sending servers that hold
|
|
80
80
|
* the corresponding private key. If it is not provided, a default VAPID key is used. Note that some
|
|
81
81
|
* push services (Chrome Push Service) require a non-default VAPID key. Therefore, it is recommended
|
|
82
82
|
* to generate and import a VAPID key for your project with
|
|
83
|
-
* {@link https://firebase.google.com/docs/cloud-messaging/js/client#
|
|
83
|
+
* {@link https://firebase.google.com/docs/cloud-messaging/js/client#configure_web_credentials_in_your_app | Configure Web Credentials with FCM}.
|
|
84
84
|
* See
|
|
85
85
|
* {@link https://developers.google.com/web/fundamentals/push-notifications/web-push-protocol | The Web Push Protocol}
|
|
86
86
|
* for details on web push services.
|
|
@@ -90,7 +90,7 @@ export declare interface GetTokenOptions {
|
|
|
90
90
|
* The service worker registration for receiving push
|
|
91
91
|
* messaging. If the registration is not provided explicitly, you need to have a
|
|
92
92
|
* `firebase-messaging-sw.js` at your root location. See
|
|
93
|
-
* {@link https://firebase.google.com/docs/cloud-messaging/js/client#
|
|
93
|
+
* {@link https://firebase.google.com/docs/cloud-messaging/js/client#access_the_registration_token | Access the registration token}
|
|
94
94
|
* for more details.
|
|
95
95
|
*/
|
|
96
96
|
serviceWorkerRegistration?: ServiceWorkerRegistration;
|
|
@@ -124,7 +124,7 @@ export declare function isSupported(): Promise<boolean>;
|
|
|
124
124
|
* Message payload that contains the notification payload that is represented with
|
|
125
125
|
* {@link NotificationPayload} and the data payload that contains an arbitrary
|
|
126
126
|
* number of key-value pairs sent by developers through the
|
|
127
|
-
* {@link https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification | Send API}
|
|
127
|
+
* {@link https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification | Send API}.
|
|
128
128
|
*
|
|
129
129
|
* @public
|
|
130
130
|
*/
|
|
@@ -153,7 +153,7 @@ export declare interface MessagePayload {
|
|
|
153
153
|
*/
|
|
154
154
|
collapseKey: string;
|
|
155
155
|
/**
|
|
156
|
-
* The message
|
|
156
|
+
* The message ID of a message.
|
|
157
157
|
*/
|
|
158
158
|
messageId: string;
|
|
159
159
|
}
|
|
@@ -172,8 +172,8 @@ export declare interface Messaging {
|
|
|
172
172
|
export { NextFn }
|
|
173
173
|
|
|
174
174
|
/**
|
|
175
|
-
* Display notification details.
|
|
176
|
-
* {@link https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification | Send API}
|
|
175
|
+
* Display notification details. Details are sent through the
|
|
176
|
+
* {@link https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification | Send API}.
|
|
177
177
|
*
|
|
178
178
|
* @public
|
|
179
179
|
*/
|
package/dist/src/api.d.ts
CHANGED
|
@@ -34,15 +34,15 @@ export declare function getMessagingInWindow(app?: FirebaseApp): Messaging;
|
|
|
34
34
|
*/
|
|
35
35
|
export declare function getMessagingInSw(app?: FirebaseApp): Messaging;
|
|
36
36
|
/**
|
|
37
|
-
* Subscribes the {@link Messaging} instance to push notifications. Returns
|
|
37
|
+
* Subscribes the {@link Messaging} instance to push notifications. Returns a Firebase Cloud
|
|
38
38
|
* Messaging registration token that can be used to send push messages to that {@link Messaging}
|
|
39
39
|
* instance.
|
|
40
40
|
*
|
|
41
|
-
* If
|
|
41
|
+
* If notification permission isn't already granted, this method asks the user for permission. The
|
|
42
42
|
* returned promise rejects if the user does not allow the app to show notifications.
|
|
43
43
|
*
|
|
44
44
|
* @param messaging - The {@link Messaging} instance.
|
|
45
|
-
* @param options - Provides an optional vapid key and an
|
|
45
|
+
* @param options - Provides an optional vapid key and an optional service worker registration.
|
|
46
46
|
*
|
|
47
47
|
* @returns The promise resolves with an FCM registration token.
|
|
48
48
|
*
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import { FirebaseApp } from '@firebase/app';
|
|
18
18
|
/**
|
|
19
|
-
* Display notification details.
|
|
20
|
-
* {@link https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification | Send API}
|
|
19
|
+
* Display notification details. Details are sent through the
|
|
20
|
+
* {@link https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification | Send API}.
|
|
21
21
|
*
|
|
22
22
|
* @public
|
|
23
23
|
*/
|
|
@@ -43,7 +43,7 @@ export interface NotificationPayload {
|
|
|
43
43
|
/**
|
|
44
44
|
* Options for features provided by the FCM SDK for Web. See {@link
|
|
45
45
|
* https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#webpushfcmoptions |
|
|
46
|
-
* WebpushFcmOptions}
|
|
46
|
+
* WebpushFcmOptions}.
|
|
47
47
|
*
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
@@ -61,7 +61,7 @@ export interface FcmOptions {
|
|
|
61
61
|
* Message payload that contains the notification payload that is represented with
|
|
62
62
|
* {@link NotificationPayload} and the data payload that contains an arbitrary
|
|
63
63
|
* number of key-value pairs sent by developers through the
|
|
64
|
-
* {@link https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification | Send API}
|
|
64
|
+
* {@link https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification | Send API}.
|
|
65
65
|
*
|
|
66
66
|
* @public
|
|
67
67
|
*/
|
|
@@ -90,23 +90,23 @@ export interface MessagePayload {
|
|
|
90
90
|
*/
|
|
91
91
|
collapseKey: string;
|
|
92
92
|
/**
|
|
93
|
-
* The message
|
|
93
|
+
* The message ID of a message.
|
|
94
94
|
*/
|
|
95
95
|
messageId: string;
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
98
|
-
* Options for {@link getToken}
|
|
98
|
+
* Options for {@link getToken}.
|
|
99
99
|
*
|
|
100
100
|
* @public
|
|
101
101
|
*/
|
|
102
102
|
export interface GetTokenOptions {
|
|
103
103
|
/**
|
|
104
|
-
* The public server key provided to push services.
|
|
105
|
-
* authenticate
|
|
104
|
+
* The public server key provided to push services. The key is used to
|
|
105
|
+
* authenticate push subscribers to receive push messages only from sending servers that hold
|
|
106
106
|
* the corresponding private key. If it is not provided, a default VAPID key is used. Note that some
|
|
107
107
|
* push services (Chrome Push Service) require a non-default VAPID key. Therefore, it is recommended
|
|
108
108
|
* to generate and import a VAPID key for your project with
|
|
109
|
-
* {@link https://firebase.google.com/docs/cloud-messaging/js/client#
|
|
109
|
+
* {@link https://firebase.google.com/docs/cloud-messaging/js/client#configure_web_credentials_in_your_app | Configure Web Credentials with FCM}.
|
|
110
110
|
* See
|
|
111
111
|
* {@link https://developers.google.com/web/fundamentals/push-notifications/web-push-protocol | The Web Push Protocol}
|
|
112
112
|
* for details on web push services.
|
|
@@ -116,7 +116,7 @@ export interface GetTokenOptions {
|
|
|
116
116
|
* The service worker registration for receiving push
|
|
117
117
|
* messaging. If the registration is not provided explicitly, you need to have a
|
|
118
118
|
* `firebase-messaging-sw.js` at your root location. See
|
|
119
|
-
* {@link https://firebase.google.com/docs/cloud-messaging/js/client#
|
|
119
|
+
* {@link https://firebase.google.com/docs/cloud-messaging/js/client#access_the_registration_token | Access the registration token}
|
|
120
120
|
* for more details.
|
|
121
121
|
*/
|
|
122
122
|
serviceWorkerRegistration?: ServiceWorkerRegistration;
|
|
@@ -17,7 +17,7 @@ export declare function experimentalSetDeliveryMetricsExportedToBigQueryEnabled(
|
|
|
17
17
|
/**
|
|
18
18
|
* Options for features provided by the FCM SDK for Web. See {@link
|
|
19
19
|
* https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#webpushfcmoptions |
|
|
20
|
-
* WebpushFcmOptions}
|
|
20
|
+
* WebpushFcmOptions}.
|
|
21
21
|
*
|
|
22
22
|
* @public
|
|
23
23
|
*/
|
|
@@ -41,18 +41,18 @@ export declare interface FcmOptions {
|
|
|
41
41
|
*/
|
|
42
42
|
export declare function getMessaging(app?: FirebaseApp): Messaging;
|
|
43
43
|
/**
|
|
44
|
-
* Options for {@link getToken}
|
|
44
|
+
* Options for {@link getToken}.
|
|
45
45
|
*
|
|
46
46
|
* @public
|
|
47
47
|
*/
|
|
48
48
|
export declare interface GetTokenOptions {
|
|
49
49
|
/**
|
|
50
|
-
* The public server key provided to push services.
|
|
51
|
-
* authenticate
|
|
50
|
+
* The public server key provided to push services. The key is used to
|
|
51
|
+
* authenticate push subscribers to receive push messages only from sending servers that hold
|
|
52
52
|
* the corresponding private key. If it is not provided, a default VAPID key is used. Note that some
|
|
53
53
|
* push services (Chrome Push Service) require a non-default VAPID key. Therefore, it is recommended
|
|
54
54
|
* to generate and import a VAPID key for your project with
|
|
55
|
-
* {@link https://firebase.google.com/docs/cloud-messaging/js/client#
|
|
55
|
+
* {@link https://firebase.google.com/docs/cloud-messaging/js/client#configure_web_credentials_in_your_app | Configure Web Credentials with FCM}.
|
|
56
56
|
* See
|
|
57
57
|
* {@link https://developers.google.com/web/fundamentals/push-notifications/web-push-protocol | The Web Push Protocol}
|
|
58
58
|
* for details on web push services.
|
|
@@ -62,7 +62,7 @@ export declare interface GetTokenOptions {
|
|
|
62
62
|
* The service worker registration for receiving push
|
|
63
63
|
* messaging. If the registration is not provided explicitly, you need to have a
|
|
64
64
|
* `firebase-messaging-sw.js` at your root location. See
|
|
65
|
-
* {@link https://firebase.google.com/docs/cloud-messaging/js/client#
|
|
65
|
+
* {@link https://firebase.google.com/docs/cloud-messaging/js/client#access_the_registration_token | Access the registration token}
|
|
66
66
|
* for more details.
|
|
67
67
|
*/
|
|
68
68
|
serviceWorkerRegistration?: ServiceWorkerRegistration;
|
|
@@ -78,7 +78,7 @@ export declare function isSupported(): Promise<boolean>;
|
|
|
78
78
|
* Message payload that contains the notification payload that is represented with
|
|
79
79
|
* {@link NotificationPayload} and the data payload that contains an arbitrary
|
|
80
80
|
* number of key-value pairs sent by developers through the
|
|
81
|
-
* {@link https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification | Send API}
|
|
81
|
+
* {@link https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification | Send API}.
|
|
82
82
|
*
|
|
83
83
|
* @public
|
|
84
84
|
*/
|
|
@@ -107,7 +107,7 @@ export declare interface MessagePayload {
|
|
|
107
107
|
*/
|
|
108
108
|
collapseKey: string;
|
|
109
109
|
/**
|
|
110
|
-
* The message
|
|
110
|
+
* The message ID of a message.
|
|
111
111
|
*/
|
|
112
112
|
messageId: string;
|
|
113
113
|
}
|
|
@@ -124,8 +124,8 @@ export declare interface Messaging {
|
|
|
124
124
|
}
|
|
125
125
|
export { NextFn };
|
|
126
126
|
/**
|
|
127
|
-
* Display notification details.
|
|
128
|
-
* {@link https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification | Send API}
|
|
127
|
+
* Display notification details. Details are sent through the
|
|
128
|
+
* {@link https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification | Send API}.
|
|
129
129
|
*
|
|
130
130
|
* @public
|
|
131
131
|
*/
|
package/dist/sw/internal.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare function experimentalSetDeliveryMetricsExportedToBigQueryEnabled(
|
|
|
19
19
|
/**
|
|
20
20
|
* Options for features provided by the FCM SDK for Web. See {@link
|
|
21
21
|
* https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#webpushfcmoptions |
|
|
22
|
-
* WebpushFcmOptions}
|
|
22
|
+
* WebpushFcmOptions}.
|
|
23
23
|
*
|
|
24
24
|
* @public
|
|
25
25
|
*/
|
|
@@ -49,18 +49,18 @@ export declare type _FirebaseMessagingName = 'messaging';
|
|
|
49
49
|
export declare function getMessaging(app?: FirebaseApp): Messaging;
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* Options for {@link getToken}
|
|
52
|
+
* Options for {@link getToken}.
|
|
53
53
|
*
|
|
54
54
|
* @public
|
|
55
55
|
*/
|
|
56
56
|
export declare interface GetTokenOptions {
|
|
57
57
|
/**
|
|
58
|
-
* The public server key provided to push services.
|
|
59
|
-
* authenticate
|
|
58
|
+
* The public server key provided to push services. The key is used to
|
|
59
|
+
* authenticate push subscribers to receive push messages only from sending servers that hold
|
|
60
60
|
* the corresponding private key. If it is not provided, a default VAPID key is used. Note that some
|
|
61
61
|
* push services (Chrome Push Service) require a non-default VAPID key. Therefore, it is recommended
|
|
62
62
|
* to generate and import a VAPID key for your project with
|
|
63
|
-
* {@link https://firebase.google.com/docs/cloud-messaging/js/client#
|
|
63
|
+
* {@link https://firebase.google.com/docs/cloud-messaging/js/client#configure_web_credentials_in_your_app | Configure Web Credentials with FCM}.
|
|
64
64
|
* See
|
|
65
65
|
* {@link https://developers.google.com/web/fundamentals/push-notifications/web-push-protocol | The Web Push Protocol}
|
|
66
66
|
* for details on web push services.
|
|
@@ -70,7 +70,7 @@ export declare interface GetTokenOptions {
|
|
|
70
70
|
* The service worker registration for receiving push
|
|
71
71
|
* messaging. If the registration is not provided explicitly, you need to have a
|
|
72
72
|
* `firebase-messaging-sw.js` at your root location. See
|
|
73
|
-
* {@link https://firebase.google.com/docs/cloud-messaging/js/client#
|
|
73
|
+
* {@link https://firebase.google.com/docs/cloud-messaging/js/client#access_the_registration_token | Access the registration token}
|
|
74
74
|
* for more details.
|
|
75
75
|
*/
|
|
76
76
|
serviceWorkerRegistration?: ServiceWorkerRegistration;
|
|
@@ -88,7 +88,7 @@ export declare function isSupported(): Promise<boolean>;
|
|
|
88
88
|
* Message payload that contains the notification payload that is represented with
|
|
89
89
|
* {@link NotificationPayload} and the data payload that contains an arbitrary
|
|
90
90
|
* number of key-value pairs sent by developers through the
|
|
91
|
-
* {@link https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification | Send API}
|
|
91
|
+
* {@link https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification | Send API}.
|
|
92
92
|
*
|
|
93
93
|
* @public
|
|
94
94
|
*/
|
|
@@ -117,7 +117,7 @@ export declare interface MessagePayload {
|
|
|
117
117
|
*/
|
|
118
118
|
collapseKey: string;
|
|
119
119
|
/**
|
|
120
|
-
* The message
|
|
120
|
+
* The message ID of a message.
|
|
121
121
|
*/
|
|
122
122
|
messageId: string;
|
|
123
123
|
}
|
|
@@ -136,8 +136,8 @@ export declare interface Messaging {
|
|
|
136
136
|
export { NextFn }
|
|
137
137
|
|
|
138
138
|
/**
|
|
139
|
-
* Display notification details.
|
|
140
|
-
* {@link https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification | Send API}
|
|
139
|
+
* Display notification details. Details are sent through the
|
|
140
|
+
* {@link https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification | Send API}.
|
|
141
141
|
*
|
|
142
142
|
* @public
|
|
143
143
|
*/
|
package/dist/sw/private.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare function experimentalSetDeliveryMetricsExportedToBigQueryEnabled(
|
|
|
19
19
|
/**
|
|
20
20
|
* Options for features provided by the FCM SDK for Web. See {@link
|
|
21
21
|
* https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#webpushfcmoptions |
|
|
22
|
-
* WebpushFcmOptions}
|
|
22
|
+
* WebpushFcmOptions}.
|
|
23
23
|
*
|
|
24
24
|
* @public
|
|
25
25
|
*/
|
|
@@ -46,18 +46,18 @@ export declare interface FcmOptions {
|
|
|
46
46
|
export declare function getMessaging(app?: FirebaseApp): Messaging;
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* Options for {@link getToken}
|
|
49
|
+
* Options for {@link getToken}.
|
|
50
50
|
*
|
|
51
51
|
* @public
|
|
52
52
|
*/
|
|
53
53
|
export declare interface GetTokenOptions {
|
|
54
54
|
/**
|
|
55
|
-
* The public server key provided to push services.
|
|
56
|
-
* authenticate
|
|
55
|
+
* The public server key provided to push services. The key is used to
|
|
56
|
+
* authenticate push subscribers to receive push messages only from sending servers that hold
|
|
57
57
|
* the corresponding private key. If it is not provided, a default VAPID key is used. Note that some
|
|
58
58
|
* push services (Chrome Push Service) require a non-default VAPID key. Therefore, it is recommended
|
|
59
59
|
* to generate and import a VAPID key for your project with
|
|
60
|
-
* {@link https://firebase.google.com/docs/cloud-messaging/js/client#
|
|
60
|
+
* {@link https://firebase.google.com/docs/cloud-messaging/js/client#configure_web_credentials_in_your_app | Configure Web Credentials with FCM}.
|
|
61
61
|
* See
|
|
62
62
|
* {@link https://developers.google.com/web/fundamentals/push-notifications/web-push-protocol | The Web Push Protocol}
|
|
63
63
|
* for details on web push services.
|
|
@@ -67,7 +67,7 @@ export declare interface GetTokenOptions {
|
|
|
67
67
|
* The service worker registration for receiving push
|
|
68
68
|
* messaging. If the registration is not provided explicitly, you need to have a
|
|
69
69
|
* `firebase-messaging-sw.js` at your root location. See
|
|
70
|
-
* {@link https://firebase.google.com/docs/cloud-messaging/js/client#
|
|
70
|
+
* {@link https://firebase.google.com/docs/cloud-messaging/js/client#access_the_registration_token | Access the registration token}
|
|
71
71
|
* for more details.
|
|
72
72
|
*/
|
|
73
73
|
serviceWorkerRegistration?: ServiceWorkerRegistration;
|
|
@@ -85,7 +85,7 @@ export declare function isSupported(): Promise<boolean>;
|
|
|
85
85
|
* Message payload that contains the notification payload that is represented with
|
|
86
86
|
* {@link NotificationPayload} and the data payload that contains an arbitrary
|
|
87
87
|
* number of key-value pairs sent by developers through the
|
|
88
|
-
* {@link https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification | Send API}
|
|
88
|
+
* {@link https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification | Send API}.
|
|
89
89
|
*
|
|
90
90
|
* @public
|
|
91
91
|
*/
|
|
@@ -114,7 +114,7 @@ export declare interface MessagePayload {
|
|
|
114
114
|
*/
|
|
115
115
|
collapseKey: string;
|
|
116
116
|
/**
|
|
117
|
-
* The message
|
|
117
|
+
* The message ID of a message.
|
|
118
118
|
*/
|
|
119
119
|
messageId: string;
|
|
120
120
|
}
|
|
@@ -133,8 +133,8 @@ export declare interface Messaging {
|
|
|
133
133
|
export { NextFn }
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
|
-
* Display notification details.
|
|
137
|
-
* {@link https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification | Send API}
|
|
136
|
+
* Display notification details. Details are sent through the
|
|
137
|
+
* {@link https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification | Send API}.
|
|
138
138
|
*
|
|
139
139
|
* @public
|
|
140
140
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firebase/messaging",
|
|
3
|
-
"version": "0.12.4-canary.
|
|
3
|
+
"version": "0.12.4-canary.f497a400a",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
@@ -50,18 +50,18 @@
|
|
|
50
50
|
},
|
|
51
51
|
"license": "Apache-2.0",
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@firebase/app": "0.9.
|
|
53
|
+
"@firebase/app": "0.9.15-canary.f497a400a"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@firebase/installations": "0.6.4-canary.
|
|
57
|
-
"@firebase/messaging-interop-types": "0.2.0-canary.
|
|
58
|
-
"@firebase/util": "1.9.3-canary.
|
|
59
|
-
"@firebase/component": "0.6.4-canary.
|
|
56
|
+
"@firebase/installations": "0.6.4-canary.f497a400a",
|
|
57
|
+
"@firebase/messaging-interop-types": "0.2.0-canary.f497a400a",
|
|
58
|
+
"@firebase/util": "1.9.3-canary.f497a400a",
|
|
59
|
+
"@firebase/component": "0.6.4-canary.f497a400a",
|
|
60
60
|
"idb": "7.1.1",
|
|
61
61
|
"tslib": "^2.1.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@firebase/app": "0.9.
|
|
64
|
+
"@firebase/app": "0.9.15-canary.f497a400a",
|
|
65
65
|
"rollup": "2.79.1",
|
|
66
66
|
"rollup-plugin-typescript2": "0.31.2",
|
|
67
67
|
"@rollup/plugin-json": "4.1.0",
|