Sign firebase token push notification

Store client key firebase

Base URL (develop enviroment) :

ENDPOINT: /device

METHOD: POST

PARAMETERS: NONE

HEADER:

{
    X-Port-Type:PUB,
    Authorization: Bear {access_token}
}

BODY:

{
    fcm_token: {firebase_token},
    os: 1
}
1 : DESKTOP, 2: IOS, 3: ANDROID

RESPONSE:

1.Status: Error

{
    "status": "fail",
    "message": "some thing went wrong!"
}

1.Status: Success

{
    "status": "success",
    "data": ""
}

Last updated

Was this helpful?