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

Open
@FluorescentHallucinogen

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?

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