Monday, 4 June 2018

Firebase Cloud messaging doesn't work for Build variant on Android

I have 2 projects in Firebase: nl.companyname and nl.companyname.acc:

enter image description here

This is my build.gradle:

flavorDimensions "type"
productFlavors {
    acceptance {
        dimension="type"
        applicationIdSuffix ".acc"
        versionNameSuffix "-acc"
    }
    production {
        dimension="type"
        applicationIdSuffix ""
        versionNameSuffix ""
    }
}

The download google-services.json is in directory: app/google-services.json

Android Studio is logged in to the Google account and synchronized:

enter image description here

The message shows up as successfully sent: enter image description here

Problem description:

  • When sending a message on nl.companyname, it works.

  • When sending a message and targeting the device's Token ID, it works.

  • But the nl.companyname.acc doesn't work.

Steps tried:

  • I've deleted the .acc App in Firebase and re-added it (and downloaded the new json file).

enter image description here

Any help is greatly appreciated.



from Firebase Cloud messaging doesn't work for Build variant on Android

No comments:

Post a Comment