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日
help wanted
仓库指标
- 星标
- (2,662 个星标)
- 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.