Skip to content

Commit 0dd51f1

Browse files
authored
fix return notification fireDate (#89)
1 parent e60823b commit 0dd51f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ class PushNotificationIOS {
7777
_isRemote: boolean;
7878
_remoteNotificationCompleteCallbackCalled: boolean;
7979
_threadID: string;
80+
_fireDate: string | Date;
8081

8182
static FetchResult: FetchResult = {
8283
NewData: 'UIBackgroundFetchResultNewData',
@@ -388,6 +389,7 @@ class PushNotificationIOS {
388389
this._category = notifVal.category;
389390
this._contentAvailable = notifVal['content-available'];
390391
this._threadID = notifVal['thread-id'];
392+
this._fireDate = notifVal.fireDate;
391393
} else {
392394
this._data[notifKey] = notifVal;
393395
}
@@ -399,6 +401,7 @@ class PushNotificationIOS {
399401
this._alert = nativeNotif.alertBody;
400402
this._data = nativeNotif.userInfo;
401403
this._category = nativeNotif.category;
404+
this._fireDate = nativeNotif.fireDate;
402405
}
403406
}
404407

0 commit comments

Comments
 (0)