I think this should be done when the error is added to a notification at the latest. That is notionally when it is delivered, and also allows people to adjust the error while the error is still happening in the app