This repository was archived by the owner on Jan 14, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +18
-1
lines changed
src/main/java/com/dieam/reactnativepushnotification/modules Expand file tree Collapse file tree 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
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
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 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" : {
You can’t perform that action at this time.
0 commit comments