michalsol
michalsol

Reputation: 752

Firebase Cloud Messages not being delivered when using multiple topics in condition

I'm facing a problem with Firebase Cloud Messaging for some time. My Android application can be subscribed to one of two topic (either AtopicA or BtopicB). My backend system uses request to Firebase's API in order to send a messages to users of application.

The request (made to https://fcm.googleapis.com/v1/projects/my-project/messages:send looks as follow:

{
"message": {
    "condition": "'AtopicA' in topics || 'BtopicB' in topics",
    "data": {
        "news": "Something new",
        "title": "OUR_TITLE_OF_MESSAGE",
        "ourOwnID": "firebase-debug-test-v10"
    }
}

}

It was working ok, but something has changed quite recently. After long investigations I've figured out, that when using just one topic in the condition - e.g. using just "condition": "'AtopicA' in topics" - it works ok and messages are being delivered. However, when using combined condition, it fails.

I've already tried several things:

Is there anything wrong at the Firebase's side? Has anything changed in its configuration recently (as I said - our solution with two topics combined in condition was working well for a long time)?

Upvotes: 0

Views: 290

Answers (2)

michalsol
michalsol

Reputation: 752

I've contacted Firebase Support, which confirmed similar reports being sent to the support team recently. So it indeed looks like a problem at Firebase's end. Unfortunately, there wasn't able to share any timeline for fixing that isssue. I also cannot see any outage reported at Firebase status webpage.

Is there anyone from Firebase Dev Team here, who could actualy say what's going on? :)

Upvotes: 0

DIGI Byte
DIGI Byte

Reputation: 4174

I did some research into it, and your template looks like it should be valid. The only thing that I found was a case insensitivity with the topic conditions, of which the Solution was to report it to Firebase Support as a Bug and further diagnosis.

Since this was working previously until now, this is the most sound solution as a bug may have been introduced with the topics handler.

https://firebase.google.com/support/troubleshooter/contact

Upvotes: 1

Related Questions