How to update Notification with RemoteViews?

后端 未结 4 623
感情败类
感情败类 2020-11-29 22:48

I\'m creating a notification with RemoteViews from a custom Service, which is running with notification in a foreground mode (that is, service will remain activ

4条回答
  •  情话喂你
    2020-11-29 23:53

    Don't store Notification object, but the Notification.Builder object. Produce new notification every time before pushing it to

    NotificationManager.notify( id, notification );
    

提交回复
热议问题