I've followed the tutorial https://developers.google.com/cloud-messaging/android/client. It works - I'm able to send and receive notifications.
But when I try to build release app, Android Lint complains:
Error: "gcm_defaultSenderId" is not translated in ...
So I can disable build failing when Lint complains with this in build.gradle
:
lintOptions{
abortOnError false
}
But obviously this is not a solution. Hardcoding senderId
in my app is also not good idea (we have valid gcm_defaultSenderId
anyway in the google-services.json
so doubling it is asking for problems in the future).
Is there any way around this obvious oversight from Google Play Services developers?
EDIT 02 December 2015 OMG! Today google actuallt started doing something on this issue, see here.
Disclaimer: this is not a duplicate of Can't generate APK Release because of GCM SenderId Android - the accepted answer is not acceptable for me.