MaikuB/flutter_local_notifications

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

Open

#2407 aperta il 19 set 2024

Vedi su GitHub
 (5 commenti) (0 reazioni) (0 assegnatari)Dart (1187 fork)batch import
help wanted

Metriche repository

Star
 (2208 star)
Metriche merge PR
 (Merge medio 59m) (4 PR mergiate in 30 g)

Descrizione

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.

Guida contributor