0

I would like to send push notifications to app users and to do that I have written server side script in PHP.

In many blogs like this one, I have read that to send notifications from server to Android devices, we need to get Server Key, but in one of the recent tutorial I read about Browser Key

So which key I need to get, to get my work done, either Server Key or Browser Key, and may I know the exact difference between these two keys.

3
  • - Server keys : Create and use a server key if your application runs on a server. Do not use this key outside of your server code. For example, do not embed it in a web page. To prevent quota theft, restrict your key so that requests are only allowed from your servers' source IP addresses. - Browser keys : Create and use a browser key if your application runs on a client, such as a web browser. To prevent your key from being used on unauthorized sites, only allow referrals from domains you administer. Commented Jan 29, 2016 at 7:01
  • @PhuocHuynh so which key I need to use to send push notifications from server side to android devices ? OR .. I can use any key.. Commented Jan 29, 2016 at 7:05
  • Android -> GCM ->(get registration ids)-> input this id to server -> sever get this id -> push notification to device Thanks @Sanjeev kumar Commented Jan 29, 2016 at 7:14

1 Answer 1

1

You need to use server key for push notification.

refer here for difference between server key and browser key

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.