Fadi Obaji
Fadi Obaji

Reputation: 1494

Android: Should the GCM SENDER_ID be kept secret?

I'm a little bit confused here, i'm using the new GCM service and of course i have to declare the SENDER_ID in my MainActicity, i'm just curious about the security here, if someone de-compile my APK he would see my SENDER_ID, right ?

Shouldn't it be kept secret ? or it's enough to keep the API key secret ?

Upvotes: 1

Views: 307

Answers (1)

N Sharma
N Sharma

Reputation: 34497

Shouldn't it be kept secret ?

No, it's not required to keep it secret. If anyone decompile your APK and find anyhow your sender ID then hacker cant do anything.

Because to push GCM notification it's required to have API key of Server which is available to owner only.

Upvotes: 3

Related Questions