Skip to content

Commit 5a0a413

Browse files
committed
For ionic, now listening the the correct event name onTokenRefresh.
1 parent cd8430a commit 5a0a413

16 files changed

+930
-930
lines changed

cordova-plugin-fcm-with-dependecy-updated.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |spec|
1616
#
1717

1818
spec.name = "cordova-plugin-fcm-with-dependecy-updated"
19-
spec.version = "7.0.0-beta.2"
19+
spec.version = "7.0.0-beta.3"
2020
spec.summary = "Google FCM Push Notifications Cordova Plugin"
2121

2222
# This description is used to generate tags and improve search results.

ionic/FCM.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var FCMPluginOnIonic = (function () {
2727
};
2828
FCMPluginOnIonic.prototype.onTokenRefresh = function () {
2929
var observable = new Subject();
30-
window.FCM.eventTarget.addEventListener('notification', function (event) { return observable.next(event.detail); }, { passive: true });
30+
window.FCM.eventTarget.addEventListener('tokenRefresh', function (event) { return observable.next(event.detail); }, { passive: true });
3131
return observable;
3232
};
3333
FCMPluginOnIonic.prototype.requestPushPermission = function (options) {

ionic/ngx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "7.0.0-beta.2",
2+
"version": "7.0.0-beta.3",
33
"name": "cordova-plugin-fcm-with-dependecy-updated",
44
"cordova_name": "Cordova FCM Push Plugin",
55
"description": "Google Firebase Cloud Messaging Cordova Push Plugin fork with dependecy updated",

ionic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "7.0.0-beta.2",
2+
"version": "7.0.0-beta.3",
33
"name": "cordova-plugin-fcm-with-dependecy-updated",
44
"cordova_name": "Cordova FCM Push Plugin",
55
"description": "Google Firebase Cloud Messaging Cordova Push Plugin fork with dependecy updated",

ionic/v4/FCM.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var FCM = (function () {
3030
};
3131
FCM.prototype.onTokenRefresh = function () {
3232
var observable = new Subject();
33-
window.FCM.eventTarget.addEventListener('notification', function (event) { return observable.next(event.detail); }, { passive: true });
33+
window.FCM.eventTarget.addEventListener('tokenRefresh', function (event) { return observable.next(event.detail); }, { passive: true });
3434
return observable;
3535
};
3636
FCM.prototype.requestPushPermission = function (options) {

ionic/v4/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "7.0.0-beta.2",
2+
"version": "7.0.0-beta.3",
33
"name": "cordova-plugin-fcm-with-dependecy-updated",
44
"cordova_name": "Cordova FCM Push Plugin",
55
"description": "Google Firebase Cloud Messaging Cordova Push Plugin fork with dependecy updated",

0 commit comments

Comments
 (0)