From 6ed3d130fa5465adc5ffe22aa8c788f51757752b Mon Sep 17 00:00:00 2001 From: Sam Fletcher Date: Fri, 12 Mar 2021 20:00:28 -0600 Subject: [PATCH 1/2] Document `data` in getScheduledLocalNotifications() --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 1289a7164..9a0a1af2e 100644 --- a/README.md +++ b/README.md @@ -586,6 +586,7 @@ Returns an array of local scheduled notification objects containing: | soundName | string | The sound name of this notification. | | repeatInterval | number | (Android only) The repeat interval of this notification. | | number | number | App notification badge count number. | +| data | any | The user info of this notification. | ## Abandon Permissions From 3b677671fc3eaf8ce3d22c076f57a1a67f7dec20 Mon Sep 17 00:00:00 2001 From: Sebastian Pernett Date: Thu, 18 Mar 2021 09:38:20 -0500 Subject: [PATCH 2/2] fix(ios): foreground notification property check if react native's app state is unknown to verify if app came from background --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 8ea9b70de..ce5718bba 100644 --- a/index.js +++ b/index.js @@ -351,7 +351,8 @@ Notifications._transformNotificationObject = function(data, isFromBackground = n if ( isFromBackground === null ) { isFromBackground = ( data.foreground === false || - AppState.currentState === 'background' + AppState.currentState === 'background' || + AppState.currentState === 'unknown' ); }