Firebase Integration

Firebase is available as an Action Type in Fast Track. By following the steps below you can integrate this engagement channel.

🏛 Architecture

Here is a diagram describing the implementation.

Firebase architecture

As described in the diagram above, we will need you to send the firebase token/tokens to these endpoints below when it gets linked/unlinked to a user. You can also publish messages on the RabbitMQ with the specified notification type.

⬆️ POST /v1/integration/user/device/link

{
    "user_id": "1234",
    "origin": "yoursite.com",
    "tokens": [
        {
            "token": "abc",
            "channel": "android",
            "provider": "firebase"
        },
        {
            "token": "abc",
            "channel": "ios",
            "provider": "firebase"
        },
        {
            "token": "abc",
            "channel": "web",
            "provider": "firebase"
        }
    ],
    "timestamp": "2019-09-12T10:00:00Z"
}

⬆️ POST /v1/integration/user/device/unlink

{
    "user_id": "1234",
    "origin": "yoursite.com",
    "tokens": [
        {
            "token": "abc",
            "channel": "android",
            "provider": "firebase"
        },
        {
            "token": "abc",
            "channel": "ios",
            "provider": "firebase"
        },
        {
            "token": "abc",
            "channel": "web",
            "provider": "firebase"
        }
    ],
    "timestamp": "2019-09-12T10:00:00Z"
}

Credentials

We will need you to provide us with credentials described in below link.

Best Practises for Token Management

You manage how the tokens are stored in Fast Track by using the LINK / UNLINK events (see above). Please read this article from Firebase containing Best Practise examples:

Last updated

Was this helpful?