Added foregroundServiceBehavior to service motification
This commit is contained in:
@ -1145,6 +1145,8 @@ class BaresipService: Service() {
|
||||
else
|
||||
R.layout.status_notification)
|
||||
)
|
||||
if (VERSION.SDK_INT >= 31)
|
||||
snb.foregroundServiceBehavior = Notification.FOREGROUND_SERVICE_DEFAULT
|
||||
startForeground(STATUS_NOTIFICATION_ID, snb.build())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user