MaikuB/flutter_local_notifications

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

オープン

#2,407 opened on 2024/09/19

 (5 件のコメント) (0 件のリアクション) (0 人の担当者)Dart (1,561 件のフォーク)batch import
help wanted

Repository metrics

Stars
 (2,662 個のスター)
PR merge metrics
 (平均マージ 59m) (30d で 4 merged PRs)

説明

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.

コントリビューターガイド