Skip to content

Consider common API for push messages across browsers #208

Open
@oliverdunk

Description

@oliverdunk

In the 1Password extension, we open a long-lived WebSocket connection which allows the server to trigger a sync whenever anything changes in an account. With the move to shorter lifetimes in MV3, this is no longer feasible. It may be possible short-term if it becomes an allowed exemption in the offscreen documents proposal, but even if this is the case, it would be better to find a solution for this use case which makes better use of available resources.

Chrome already implements the chrome.gcm API, which (despite the name) supports Firebase Cloud Messaging and offers an extension API built specifically for push messaging.

In other browsers (at least in MV2), there are fewer options:

It would be great to discuss our options here for a few reasons:

  • Even if Firefox and Safari are willing to support the Push API in MV3, there is likely still a long period between now and then where extension developers may need different implementations for each browser
  • Chrome's GCM API is great but likely isn't the best solution for the extension ecosystem, as it would be nice to support push notifications independently of any particular service
  • The Push API is heavily linked to the idea of notifications. I haven't looked in to this too much but it's possible the two concepts should be decoupled.

Related: #72

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions