标签: android service notifications overwrite
当我第一次呼叫startForeground(NOTIFY_ID, notification)(从服务中调用)时,一切正常。
startForeground(NOTIFY_ID, notification)
稍后我想更新Notification的一些视图,然后再次调用startForeground,希望这只会因为ID而覆盖/更新旧的Notification。但随后通知转向:
通知似乎是空的,只是浮动在所有其他通知上。换句话说:通知只是搞砸了。
我的问题是:startForeground甚至更新旧通知吗?