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

Commit a15978c

Browse files
committed
Merge branch 'dev'
* dev: Bump version 7.3.2. fix(android): Adding Java 8 compile options for Android instrumented tests Fix: Foreground notifications missing small icon
2 parents 4aaaf48 + c1d6ee5 commit a15978c

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
1212

1313
### Fixed
1414

15+
## [7.3.2] 2021-05-12
16+
17+
### Fixed
18+
19+
- (Android) Fix: Foreground notifications missing small icon. [#1927](https://github.com/zo0r/react-native-push-notification/pull/1927)
20+
1521
## [7.3.1] 2021-05-12
1622

1723
### Fixed

android/build.gradle

+5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ android {
2727
compileSdkVersion safeExtGet('compileSdkVersion', 28)
2828
buildToolsVersion safeExtGet('buildToolsVersion', '28.0.3')
2929

30+
compileOptions {
31+
sourceCompatibility JavaVersion.VERSION_1_8
32+
targetCompatibility JavaVersion.VERSION_1_8
33+
}
34+
3035
defaultConfig {
3136
minSdkVersion safeExtGet('minSdkVersion', 16)
3237
targetSdkVersion safeExtGet('targetSdkVersion', 28)

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

+6
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ public void handleReceivedMessage(RemoteMessage message) {
5656
bundle.putString("color", remoteNotification.getColor());
5757
bundle.putString("tag", remoteNotification.getTag());
5858

59+
if(remoteNotification.getIcon() != null) {
60+
bundle.putString("smallIcon", remoteNotification.getIcon());
61+
} else {
62+
bundle.putString("smallIcon", "ic_notification");
63+
}
64+
5965
if(remoteNotification.getChannelId() != null) {
6066
bundle.putString("channelId", remoteNotification.getChannelId());
6167
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-push-notification",
3-
"version": "7.3.1",
3+
"version": "7.3.2",
44
"description": "React Native Local and Remote Notifications",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)