Skip to content

[Bug] Duplicating data message  #716

Open
@mea405

Description

@mea405

[REQUIRED] Please fill in the following fields:

  • Pre-built SDK from the website 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 ?
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"
}
}'

Activity

mea405

mea405 commented on Nov 8, 2021

@mea405
Author

8.7.0 - same problem

changed the title [-][Bug] [/-] [+]Duplicating data message [Bug] [/+] on Nov 8, 2021
changed the title [-]Duplicating data message [Bug] [/-] [+][Bug] Duplicating data message [/+] on Nov 8, 2021
chkuang-g

chkuang-g commented on Nov 11, 2021

@chkuang-g
Contributor

Hi @mea405

Are you using Firebase C++ SDK or Firebase Messaging REST API? I am asking because in the Relevant code section, you mentioned a Curl command line.

Also, could you elaborate on what you meant by this?

When sending a message like, a second notification comes
{
"data": {
"str1": "str1",
"str2": "str2"
},
"content_available": true
}

Thank you

added
needs-infoNeed information for the developer
and removed
newNew issue.
on Nov 11, 2021
mea405

mea405 commented on Nov 11, 2021

@mea405
Author
added and removed
needs-infoNeed information for the developer
on Nov 11, 2021
DellaBitta

DellaBitta commented on Nov 16, 2021

@DellaBitta
Contributor

I was able to successfully reproduce the problem on iOS using curl and the quick start. Thanks for creating this issue and providing the necessary information to reproduce it! I'll mark this as a bug so that we can track it internally.

4 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @morganchen12@DellaBitta@camgaertner@mea405@google-oss-bot

        Issue actions

          [Bug] Duplicating data message · Issue #716 · firebase/firebase-cpp-sdk