Skip to content
This repository was archived by the owner on Oct 24, 2021. It is now read-only.
This repository was archived by the owner on Oct 24, 2021. It is now read-only.

[ep59-firebase-messaging] How to save tokens from multiple devices w/o overwriting? #21

Description

<firebase-messaging
id="messaging"
token="{{token}}"
on-message="handleMessage">
</firebase-messaging>
<firebase-document
path="/users/[[user.uid]]/token"
data="[[token]]">
</firebase-document>

What if the user opens the web app and enable notifications on multiple devices? The token from one device will overwrite the token from another device. How to save tokens without overwriting to send push notifications to all devices?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions