-
Notifications
You must be signed in to change notification settings - Fork 228
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
Add ability to resubscribe an existing push channel #3696
Comments
This sounds like a fair solution with two clarifications:
fun resubscribe(scope: String) {
val result = appServicesPushManager.unsubscribe(scope)
if (result) {
subscribe(scope) { subscription -> accountManager.updatePushEndpoint(subscription) }
}
} A quick peek at |
I don't know to be honest. I wonder if "forcing registration renewal" should maybe even do an implicit resubscribe to all current push subscriptions, since the problem that's happening with FxA may also be happening elsewhere.
I think it should be fine to do without it |
Merging the thread from a-c to here since the conversation there on a closed issue and may get lost. This issue is around the same area as well.
Yes, it's the same as this. For now, I've implemented the short-fix specifically for FxA only in order to get Send Tab working and unblock some other folks.
I don't think we would need this outside of the scope of FxA afaict. For web content, we only notify the ServiceWorker that the subscription is no longer valid and let them decide if they want to subscribe again.
That would be an interesting solution!
I think if we can rely on A bit outside scope, but one piece of knowledge is how desktop implements the |
I think this is done with recent patches:
|
As a result of the discussions in #3314, I believe it may be possible for us to get into a situation where:
I'm not sure how we get into such a state, but it fits with observed behaviours.
Assuming that the client finds itself in such a state, the only way it can repair things is to explicitly unsubscribe and then crate a new subscription to send to the FxA server. I think it would be useful to have a
resubscribe
abstraction of some sort to make thing easier.@jonalmeida what do you think?
┆Issue is synchronized with this Jira Task
┆epic: Error detection and reduction
The text was updated successfully, but these errors were encountered: