Closed chenweigh closed 1 year ago
We solved this problem by sending data through the backend, not through the FCM Control Console. So we can parse the data that we want.
The data format looks something like this.
{
“notification”: {
//what official need
"title": "title",
"body": "body"
},
"data": {
// what we need
"title": "title",
"body": "body",
"userInfo": {
id: 1
}
}
}
Problem
Step, HuaWei Phone
Case1
Notifications.postLocalNotification
Case2
notification.payload
as:environment
I need help, I am not a professional android developer.