This repository was archived by the owner on Jan 14, 2025. It is now read-only.
File tree 4 files changed +18
-1
lines changed
src/main/java/com/dieam/reactnativepushnotification/modules
4 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
12
12
13
13
### Fixed
14
14
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
+
15
21
## [ 7.3.1] 2021-05-12
16
22
17
23
### Fixed
Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ android {
27
27
compileSdkVersion safeExtGet(' compileSdkVersion' , 28 )
28
28
buildToolsVersion safeExtGet(' buildToolsVersion' , ' 28.0.3' )
29
29
30
+ compileOptions {
31
+ sourceCompatibility JavaVersion . VERSION_1_8
32
+ targetCompatibility JavaVersion . VERSION_1_8
33
+ }
34
+
30
35
defaultConfig {
31
36
minSdkVersion safeExtGet(' minSdkVersion' , 16 )
32
37
targetSdkVersion safeExtGet(' targetSdkVersion' , 28 )
Original file line number Diff line number Diff line change @@ -56,6 +56,12 @@ public void handleReceivedMessage(RemoteMessage message) {
56
56
bundle .putString ("color" , remoteNotification .getColor ());
57
57
bundle .putString ("tag" , remoteNotification .getTag ());
58
58
59
+ if (remoteNotification .getIcon () != null ) {
60
+ bundle .putString ("smallIcon" , remoteNotification .getIcon ());
61
+ } else {
62
+ bundle .putString ("smallIcon" , "ic_notification" );
63
+ }
64
+
59
65
if (remoteNotification .getChannelId () != null ) {
60
66
bundle .putString ("channelId" , remoteNotification .getChannelId ());
61
67
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-push-notification" ,
3
- "version" : " 7.3.1 " ,
3
+ "version" : " 7.3.2 " ,
4
4
"description" : " React Native Local and Remote Notifications" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments