GetStream / stream-cli

Configure & manage Stream applications from the command line. 🚀
https://yarnpkg.com/en/package/getstream-cli
BSD 3-Clause "New" or "Revised" License
85 stars 19 forks source link

Unexpected token o in JSON at position 1 (firebase test) #71

Closed jfacoustic closed 2 years ago

jfacoustic commented 3 years ago

I'm trying to test Firebase push notifications and am getting the following output:

stream chat:push:test -u <user-id>                                                                                                                                                                ─╯
Here is the rendered Firebase notification that will be sent to your devices:
{
    "data": {
        "channel": {
            "id": "fun-1",
            "type": "messaging"
        },
        "message": "very-fake-message",
        "sender": "john_doe"
    },
    "notification": {
        "body": "The quick fox brown lazies over the jumpy dog",
        "click_action": "OPEN_ACTIVITY_1",
        "sound": "default",
        "title": "Jonathan Doelowski @ The fun squad"
    },
    "priority": "high"
}
Here is the rendered notification payload that will be sent to your devices:
 ›   Error: Unexpected token o in JSON at position 1

No push notifications are sent. I verified that I'm using the correct user id.

ezet commented 3 years ago

I'm having the same issue

ferhatelmas commented 3 years ago

thanks, I will give a look into it

fgallo commented 2 years ago

I'm having the same issue, but I'm trying to use APN. Any updates?

Dnathan33 commented 2 years ago

any update on this? having the same issue.

ferhatelmas commented 2 years ago

thanks for follow up, will release a fix today, stay tuned

ferhatelmas commented 2 years ago

0.3.0 has the fix