Can we push only data message from Firebase Notifi

2019-01-29 08:03发布

This question already has an answer here:

I have implemented FCM successfully in my project.

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

1条回答
小情绪 Triste *
2楼-- · 2019-01-29 08:46

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.

查看更多
登录 后发表回答