43

Is it possible to use same sender id for more applications? Now I have 18 application (different language and some functionality) which use same backend. Now I am implementing push notifications with GCM. But backend team preffer to have only one google project - SENDER ID for all applications. Did anyone try it? Is this scenario possible? What are the drawbacks?

Thanks

1 Answer 1

104

Developers are perfectly welcome (and encouraged) to use the same sender ID / API key for all of their apps.

When you send a message, you specify a registration ID, which is implicitly linked to the package name of the app + device where it was generated. Only the app which requested the registration ID will receive your message.

Source: I'm a member of the Android team at Google.

7
  • 2
    Just curios to know that what happens in case someone reverse engineer's the .apk and extracts the SENDER ID? As multiple apps are allowed to use the same sender ID, then can the attacker use the same sender ID for his fake app( with same package name on a different store) as well? Aug 12, 2013 at 20:24
  • 1
    I have the same question as Shobhit (in fact I was about to post it because of his recent question here: stackoverflow.com/questions/18196292/… when I noticed his comment). A lot of people seem to believe that it's important to keep the sender ID safe, but why?
    – Jason C
    Aug 12, 2013 at 21:00
  • 1
    @JasonC There is an answer on the above question. See stackoverflow.com/a/18216063/1306419 . Hope it will clear few things. Aug 13, 2013 at 19:09
  • 4
    @Trevor Johns Is it the same case for IOS?
    – gherkin
    Jan 12, 2016 at 17:20
  • 1
    Google is so much friendlier compared to Apple when it comes to notifications... and many other things as well. Love it! Thanks for your answer!
    – Andrei
    Oct 19, 2017 at 15:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.