MaikuB/flutter_local_notifications

Feature request: Adding a way to update sticky notification text without stopping and restarting that notification

開放

#2,407 建立於 2024年9月19日

 (5 則留言) (0 個反應) (0 位負責人)Dart (1,561 個分叉)batch import
help wanted

倉庫指標

星標
 (2,663 顆星)
PR 合併指標
 (平均合併 59分鐘) (30 天內合併 4 個 PR)

描述

stopForegroundService and startForegroundService can be used to update the text in a foreground service (sticky) notification in Android. However, that OS is slow to show newly created foreground services notifications (Maybe 10 - 20 seconds at times). It would be great if there were a way to change the title and body text without removing the current sticky notification.

I tried using second invocation of startForegroundService after the first invocation created the sticky notification, but that did not change the text.

貢獻者指南