How to update a notification without notifying in Android?

后端 未结 1 1260
野性不改
野性不改 2021-01-15 00:05

So I have an app that receives the temperature via MQTT. To avoid getting spammed by notifcations, I want the app to notify once, that is vibrate, play sound and then the ne

相关标签:
1条回答
  • 2021-01-15 00:46

    You'll want to call setOnlyAlertOnce(true) to cause updates to your notification to not send sound/vibration.

    0 讨论(0)
提交回复
热议问题