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

Commit 60ea210

Browse files
author
Boris Tacyniak
authored
Merge pull request #1916 from Pernett98/feature/fix-foreground-property
fix(ios): foreground notification property
2 parents 479e41d + 3b67767 commit 60ea210

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,7 @@ Returns an array of local scheduled notification objects containing:
586586
| soundName | string | The sound name of this notification. |
587587
| repeatInterval | number | (Android only) The repeat interval of this notification. |
588588
| number | number | App notification badge count number. |
589+
| data | any | The user info of this notification. |
589590

590591
## Abandon Permissions
591592

index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,8 @@ Notifications._transformNotificationObject = function(data, isFromBackground = n
346346
if ( isFromBackground === null ) {
347347
isFromBackground = (
348348
data.foreground === false ||
349-
AppState.currentState === 'background'
349+
AppState.currentState === 'background' ||
350+
AppState.currentState === 'unknown'
350351
);
351352
}
352353

0 commit comments

Comments
 (0)