MaikuB/flutter_local_notifications

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

Open

#2.407 geöffnet am 19. Sept. 2024

Auf GitHub ansehen
 (5 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Dart (1.187 Forks)batch import
help wanted

Repository-Metriken

Stars
 (2.208 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 59m) (4 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide