I have 2 projects in Firebase: nl.companyname and nl.companyname.acc:
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:
The message shows up as successfully sent: 
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).
Any help is greatly appreciated.
from Firebase Cloud messaging doesn't work for Build variant on Android



No comments:
Post a Comment