Skip to content

Commit b1d56f8

Browse files
committed
provide category for android
1 parent 754a1f8 commit b1d56f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,9 @@ public void sendToNotificationCentreWithPicture(Bundle bundle, Bitmap largeIconB
500500

501501
if (bundle.getBoolean("fullScreenIntent")) {
502502
notification.setFullScreenIntent(pendingIntent, true);
503-
notification.setCategory(NotificationCompat.CATEGORY_ALARM);
503+
}
504+
if (bundle.getString("categoryAndroid") != null) {
505+
notification.setCategory(bundle.getString("categoryAndroid"));
504506
}
505507

506508
JSONArray actionsArray = null;

0 commit comments

Comments
 (0)