You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/push/api/send/platforms/a.js
+37-33Lines changed: 37 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ const key = 'a';
18
18
* - has its own compilation part;
19
19
* - has its own sending part;
20
20
* - has no distinct representation in UI, therefore it's virtual.
21
-
*
21
+
*
22
22
* Huawei push is only available on select Android devices, therefore it doesn't deserve a separate checkbox in UI from users perspective.
23
23
* Yet notification payload, provider communication and a few other things are different, therefore it's a virtual platform. You can send to huawei directly using
24
24
* API, but whenever you send to Android you'll also send to huawei if Huawei credentials are set.
@@ -27,7 +27,7 @@ const virtuals = ['h'];
27
27
28
28
/**
29
29
* Extract token & field from token_session request
30
-
*
30
+
*
31
31
* @param {object} qstring request params
32
32
* @returns {string[]|undefined} array of [platform, field, token] if qstring has platform-specific token data, undefined otherwise
33
33
*/
@@ -40,7 +40,7 @@ function extractor(qstring) {
40
40
41
41
/**
42
42
* Make an estimated guess about request platform
43
-
*
43
+
*
44
44
* @param {string} userAgent user-agent header
45
45
* @returns {string} platform key if it looks like request made by this platform
46
46
*/
@@ -104,8 +104,8 @@ class FCM extends Splitter {
104
104
}
105
105
106
106
/**
107
-
* Compile & send messages
108
-
*
107
+
* Compile & send messages
108
+
*
109
109
* @param {Object[]} data pushes to send, no more than 500 per function call as enforced by stream writableHighWaterMark
110
110
* @param {integer} length number of bytes in data
111
111
* @returns {Promise} sending promise
@@ -139,12 +139,26 @@ class FCM extends Splitter {
0 commit comments