Firebase

If you want to be able to use firebase as an action in FT CRM you can do that.

Architecture

Here is diagram describing the implementation.
Firebase Architecture

Implementing needed endpoints

As described in the diagram above, we will need you to send the firebase token/tokens when it gets linked/unlinked to a user.

/user/device/link (POST)

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

/user/device/unlink (POST)

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

Credentails

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

https://firebase.google.com/docs/cloud-messaging/auth-server#provide_credentials_manually