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

Commit c391403

Browse files
committed
Wrong name of parameter and CHANGELOG.
1 parent c283ac4 commit c391403

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
1010

1111
### Features
1212

13-
- Add support for specifying a delegate FirebaseMessagingService [#1589](https://github.com/zo0r/react-native-push-notification/pull/1589)
13+
- (Android) Add support for specifying a delegate FirebaseMessagingService [#1589](https://github.com/zo0r/react-native-push-notification/pull/1589)
1414

1515
### Fixed
1616

17+
- (Android) Fix a bug where `userInteraction` is not set, notification when app in background pressed by user.
18+
1719

1820
## [5.0.1] 2020-08-04
1921

android/src/main/java/com/dieam/reactnativepushnotification/modules/RNPushNotification.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ private Bundle getBundleFromIntent(Intent intent) {
8383
bundle = intent.getExtras();
8484
}
8585

86-
if(null != bundle && !bundle.getBoolean("foreground", false) && !bundle.containsKey("user_interaction")) {
87-
bundle.putBoolean("user_interaction", true);
86+
if(null != bundle && !bundle.getBoolean("foreground", false) && !bundle.containsKey("userInteraction")) {
87+
bundle.putBoolean("userInteraction", true);
8888
}
8989

9090
return bundle;

0 commit comments

Comments
 (0)