Fix notifications android 12 and above

This commit is contained in:
Barel Elbaz
2023-02-19 23:52:22 +02:00
parent d03dc6b374
commit 702c8116d1
2 changed files with 4 additions and 1 deletions
@@ -30,6 +30,8 @@ public class NotificationBuilder {
mBuilder.setVisibility(NotificationCompat.VISIBILITY_PUBLIC);
mBuilder.setCustomContentView(notificationArr[1]);
mBuilder.setCustomBigContentView(notificationArr[0]);
mBuilder.setCategory(NotificationCompat.CATEGORY_SERVICE); //show notification on android 12 and above #144 #143
}
public Notification build (PodsStatus status) {
+2 -1
View File
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<resources xmlns:tools="http://schemas.android.com/tools">
<string name="app_name" translatable="false">OpenPods</string>
<string name="bg_noti_channel" translatable="false">Фоновое уведомление</string>