Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

fix(ios): foreground notification property #1916

Merged
merged 3 commits into from
Mar 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);
}

Expand Down