firebase / firebase/firebase-cpp-sdk
[Bug] Duplicating data message
- Ngôn ngữ chính
- C++
- Star
- 326
- Fork
- 137
- Merge trung bình
- 3 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 5
Mô tả
### [REQUIRED] Please fill in the following fields:
* Pre-built SDK from the [website](https://firebase.google.com/download/cpp) or open-source from this repo: _both__
* Firebase C++ SDK version: _8.6.0____
* Problematic Firebase Component: _messaging____ (Auth, Database, etc.)
* Other Firebase Components in use: _____ (Auth, Database, etc.)
* Platform you are using the C++ SDK on: __Mac___ (Mac, Windows, or Linux)
* Platform you are targeting: __ios___ (iOS, Android, and/or desktop)
### [REQUIRED] Please describe the issue here:
When sending a message like, a second notification comes
{
"data": {
"str1": "str1",
"str2": "str2"
},
"content_available": true
}
#### Steps to reproduce:
Send message with:
"content_available": true
Have you been able to reproduce this issue with just the [Firebase C++ quickstarts](https://github.com/firebase/quickstart-cpp) ?
Yes
What's the issue repro rate? (eg 100%, 1/5 etc)
100%
What happened? How can we make the problem occur?
This could be a description, log/console output, etc.
If you have a downloadable sample project that reproduces the bug you're reporting, you will
likely receive a faster response on your issue.
#### Relevant Code:
curl --location --request POST 'https://fcm.googleapis.com/fcm/send' \
--header 'Authorization: key=....' \
--header 'Content-Type: application/json' \
--data-raw '{
"to" : "...",
"content_available": true,
"data" : {
"key1" : "value1",
"key2": "value2",
"key3": "value3"
}
}'
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện vấn đề với Firebase C++ quickstarts trên iOS, sử dụng yêu cầu curl được cung cấp cùng các trường content_available và data. So sánh các thông báo quan sát được với hành vi dự kiến là chỉ có một thông báo, đồng thời thu thập logs hoặc một mẫu tối thiểu. Công việc được xem là hoàn tất khi hành vi thông báo trùng lặp được giải thích và khắc phục, kèm theo kiểm thử hồi quy cho đường dẫn messaging bị ảnh hưởng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- cpp, ios
- Lĩnh vực
- mobile-dev
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100