Maxim Toyberman
Maxim Toyberman

Reputation: 2006

Android GCM :same API key for many apps

I have 2 apps that use GCM everything works fine if i have 2 different projects, is it possible to have one API key for many apps ? I have read this thread : Android GCM: same sender id for more application

it is written that it is possible,but i am trying to understand how is it possible because when you register to GCM Google asks for a package name,and every app has different package name .

How can it be accomplished?

edit:requiring me to enter Android package name enter image description here

Thank you

Upvotes: 1

Views: 784

Answers (1)

ELITE
ELITE

Reputation: 5940

You don't have to mention package name while creating GCM Server key. What you need is

  • GCM Server key and the domain name from where you have to send notifications.

  • Project Number for which you have to register device.

This registration number if different for different applications as mentioned here

Registration ID - which is implicitly linked to the package name of the app + device where it was generated.

Upvotes: 0

Related Questions