Reputation: 11
In my Flutter application, two of the same notifications appear when the application is open on iOS. The data area works smoothly on Android. When the application is open on iOS, the data field appears twice. I use alert to receive notifications when the application is closed. How can I solve this problem? This is the json I sent to Firebase:
"message": {
"token": "...",
"data": {
"body": "value1",
"title": "value2",
"sohbetId": "1",
"aliciId": "xxx"
},
"android": {
"priority": "high"
},
"apns": {
"headers": {
"apns-priority": "10"
},
"payload": {
"aps": {
"alert": {
"title": "value3",
"body": "value4",
"sohbetId": "1",
"aliciId": "xxx"
},
"sound": "default"
}
}
}
}
}
Upvotes: 1
Views: 29