问题
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