From cfe685b8da801a989aba056a949bfbc6ae0853f2 Mon Sep 17 00:00:00 2001 From: Narender Singh Date: Mon, 23 Mar 2020 16:09:55 +0530 Subject: [PATCH 1/2] return fire date --- js/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/index.js b/js/index.js index e3951adf8..d002463a1 100644 --- a/js/index.js +++ b/js/index.js @@ -77,6 +77,7 @@ class PushNotificationIOS { _isRemote: boolean; _remoteNotificationCompleteCallbackCalled: boolean; _threadID: string; + _fireDate: string | Date; static FetchResult: FetchResult = { NewData: 'UIBackgroundFetchResultNewData', @@ -342,6 +343,7 @@ class PushNotificationIOS { this._category = notifVal.category; this._contentAvailable = notifVal['content-available']; this._threadID = notifVal['thread-id']; + this._fireDate = nativeNotif.fireDate; } else { this._data[notifKey] = notifVal; } @@ -353,6 +355,7 @@ class PushNotificationIOS { this._alert = nativeNotif.alertBody; this._data = nativeNotif.userInfo; this._category = nativeNotif.category; + this._fireDate = nativeNotif.fireDate; } } From aca60e199d424e06d5eb0238f6ccbd30f8f2bf2d Mon Sep 17 00:00:00 2001 From: Narender Singh Date: Sat, 2 May 2020 17:22:58 +0530 Subject: [PATCH 2/2] change nativeNotif to notifVal in index.js --- js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/index.js b/js/index.js index d002463a1..4de11b9b2 100644 --- a/js/index.js +++ b/js/index.js @@ -343,7 +343,7 @@ class PushNotificationIOS { this._category = notifVal.category; this._contentAvailable = notifVal['content-available']; this._threadID = notifVal['thread-id']; - this._fireDate = nativeNotif.fireDate; + this._fireDate = notifVal.fireDate; } else { this._data[notifKey] = notifVal; }