Can we push only data message from Firebase Notification console [duplicate]

南笙酒味 提交于 2020-01-20 08:28:10

问题


I have implemented FCM successfully in my project.

Is it possible to push only data message from Firebase console.


回答1:


Unfortunately, no. When sending messages through the Firebase Console, it will be treated as a notification payload and will be handled as such.

You can however, include custom key-value pairs in the Advance Options section in the console, this will be treated as a part of the data payload. But the message will be treated as having both Notification and Data payload.

If you insist on sending a data only payload, you should make use of the FCM REST API.



来源:https://stackoverflow.com/questions/41160743/can-we-push-only-data-message-from-firebase-notification-console

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!