firebase cloud messaging Request contains an invalid argument

前端 未结 5 963
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-04 11:24

I am getting error while sending message using Firebase cloud messaging admin API.

Error message is below

Caused by:

5条回答
  •  暖寄归人
    2021-01-04 12:12

    Yet another cause of this is that your message is too large:

    Notification messages can contain an optional data payload. Maximum payload for both message types is 4KB, except when sending messages from the Firebase console, which enforces a 1024 character limit.

    https://firebase.google.com/docs/cloud-messaging/concept-options

提交回复
热议问题