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 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' ); }