-
Notifications
You must be signed in to change notification settings - Fork 222
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
In Push Component, return scope
as part of the decrypt() JSON response
#2045
Comments
Since scope is an identifier, we can be putting in multiple subscriptions with the same chid but different scopes, expecting separate subscriptions for each scope. What I'm unsure about right now is if we should be using one chid for all GeckoView and multiple scopes, or just hashing the scope and using that as the chid? If the latter, then I guess we don't need scopes in the PushManager? |
A CHID is basically how to determine the recipient of a push message on a given device. If you're fine with one recipient for all GeckoView push messages and use some other mechanism (e.g. an identifier in the body of the push message) then you shouldn't need scopes. Complicating things is that "scope" isn't contained in the received Push Message, since it's not provided to the Push server and encoded into the endpoint, nor is the endpoint provided to the So possible solutions might include:
|
We spoke offline and reduced to a few points:
|
Digging around the code for This might be what you're looking for. |
➤ Janet Dragojevic commented: endofyear cleanup: is this still an issue that needs to be addressed? |
No, I think we have what we need. Thanks Janet! |
According to
![Screen Shot 2019-10-25 at 1 19 27 PM](https://user-images.githubusercontent.com/35755/67591521-796a6a80-f712-11e9-9789-c32841dae3a9.png)
It's my understanding that since Scope is an identifier for service worker, (and since Push Component is not doing Delivery), decrypt should include the previously registered
scope
string as part of the response JSON. (Scope is a parameter ofsubscribe
.@jonalmeida can provide additional details if needed.
┆Issue is synchronized with this Jira Story
The text was updated successfully, but these errors were encountered: