Notification cooldown time

Hi, I am trying to implement notification cooldown time e,g, it will not get norification for certain second or something - what would be prefered way to do it?

if it could be a long duration --> deregister the device and register it again.
in other cases you can not avoid that a push message is coming in.