Приложение не отправляет уведомления Android Ошибка - PullRequest
0 голосов
/ 28 апреля 2020

Когда я пытаюсь отправить уведомление, оно не отправляется, и я получаю сообщение об ошибке в LogCat

private void addNotification() {
    NotificationCompat.Builder builder = new NotificationCompat.Builder(this, "80")
            .setSmallIcon(R.drawable.icon)
            .setContentTitle(title)
            .setContentText(text)
            .setPriority(NotificationCompat.PRIORITY_DEFAULT);

    NotificationManagerCompat notificationManager = NotificationManagerCompat.from(this);

    // notificationId is a unique int for each notification that you must define
    notificationManager.notify(80, builder.build());
}

Я пытался вызвать этот метод из потока, используя Handler и из OnCreare, оба неудачно.

Ошибки: set_timerslack_ns write failed: Operation not permitted
Предупреждение: The specified message queue synchronization barrier token has not been posted or has already been removed

Заранее спасибо за помощь.

...