Skip to content

Commit 95f6d65

Browse files
Mohit TejaniMohit Tejani
authored andcommitted
update lib and dist
1 parent a1e67ce commit 95f6d65

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

dist/web/pubnub.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8160,7 +8160,7 @@
81608160
if (platforms.includes('fcm')) {
81618161
const fcmPayload = this.fcm.toObject();
81628162
if (fcmPayload && Object.keys(fcmPayload).length)
8163-
payload.pn_gcm = fcmPayload;
8163+
payload.pn_fcm = fcmPayload;
81648164
}
81658165
if (Object.keys(payload).length && this._debugging)
81668166
payload.pn_debug = true;
@@ -13240,7 +13240,7 @@
1324013240
(!('channels' in this.parameters) || this.parameters.channels.length === 0))
1324113241
return 'Missing Channels';
1324213242
if (!pushGateway)
13243-
return 'Missing GW Type (pushGateway: gcm or apns2)';
13243+
return 'Missing GW Type (pushGateway: fcm or apns2)';
1324413244
if (this.parameters.pushGateway === 'apns2' && !this.parameters.topic)
1324513245
return 'Missing APNS2 topic';
1324613246
}

dist/web/pubnub.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/core/components/push_payload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ class NotificationsPayload {
613613
if (platforms.includes('fcm')) {
614614
const fcmPayload = this.fcm.toObject();
615615
if (fcmPayload && Object.keys(fcmPayload).length)
616-
payload.pn_gcm = fcmPayload;
616+
payload.pn_fcm = fcmPayload;
617617
}
618618
if (Object.keys(payload).length && this._debugging)
619619
payload.pn_debug = true;

lib/core/endpoints/push/push.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class BasePushNotificationChannelsRequest extends request_1.AbstractRequest {
5050
(!('channels' in this.parameters) || this.parameters.channels.length === 0))
5151
return 'Missing Channels';
5252
if (!pushGateway)
53-
return 'Missing GW Type (pushGateway: gcm or apns2)';
53+
return 'Missing GW Type (pushGateway: fcm or apns2)';
5454
if (this.parameters.pushGateway === 'apns2' && !this.parameters.topic)
5555
return 'Missing APNS2 topic';
5656
}

0 commit comments

Comments
 (0)