Is it possible to register different build variant of my app (release and debug) on GCM (it seems to me, I have migrate to Firebase Messaging, but I think the solution is the same)? When I registered my app, I get a google-service.json, and a server-key. I sent the server key to backend developers, and included the json in my project. Should I generate another json for debug build with project name "com.example.myapp.debug" (if my release build "com.example.myapp") and send this server key to backend devs too? Is this is the solution, I still don't know where to put the json for different builds. And my other question, what about GcmReceiver. I added
<action android:name="com.exmple.myapp />
should I replace this with
<action android:name="${applicationId}" />