Skip to content

Commit 754a1f8

Browse files
committed
use category=alarm
1 parent 91cdf4a commit 754a1f8

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
@@ -498,8 +498,10 @@ public void sendToNotificationCentreWithPicture(Bundle bundle, Bitmap largeIconB
498498
notification.setChannelId(channel_id);
499499
notification.setContentIntent(pendingIntent);
500500

501-
if (bundle.getBoolean("fullScreenIntent"))
501+
if (bundle.getBoolean("fullScreenIntent")) {
502502
notification.setFullScreenIntent(pendingIntent, true);
503+
notification.setCategory(NotificationCompat.CATEGORY_ALARM);
504+
}
503505

504506
JSONArray actionsArray = null;
505507
try {

0 commit comments

Comments
 (0)