-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Force closing the app resets the push notifications count. #351
Comments
sending 3 notifications:
force close the app.
... the count is reset |
ok, so we revealed the mystery. Rate limits are reset at closing because the push id is also reset at each closure. |
The reset thing works, the push id changes and from that moment on it doesn't change any more at every restart. But now I think, does it end here? This way, if you finish the notifications, you can simply reset the push id and start again. Perhaps the reset should activate automatically and not be available to the user. Is it possible that the app realizes that the push id changes and automatically reset it? |
@mgiako I agree that it's open to exploitation maybe some automatic reset of it every few days when the app knows it is connect to HA is in order? Anyway I'm going to close this as the original bug is fixed. |
I'm not going to implement anything automatic to fix this as Firebase is imminently rolling out a long term fix for this, see firebase/firebase-ios-sdk#2438 (comment). |
If you force the app to close (2.0b55), the new push notification count is reset.
Then I tried to check also the homeassistant.log, the count is also reset there (even with old versions).
The text was updated successfully, but these errors were encountered: