Merge pull request #167 from BarelElbaz/bugfix/no-notification-android12

Fix notifications android 12 and above
This commit is contained in:
Itai Levin
2023-02-20 08:40:27 +02:00
committed by GitHub
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>