瀧川 善雅
瀧川 善雅

Reputation: 41

About GCM/FCM endpoint

In our project we use GCM for Push notification. Because migration to FCM is recommended, FCM transition of server function is considered. Please tell me about questions ① and ② below.

① About GCM endpoint We are using "android.googleapis.com". In the following URL (FCM official website), the GCM end point is written as "gcm-http.googleapis.com", and we do not have "android.googleapis.com" written. In offcial website, There is no mention of our useing GCM endpoint "android.googleapis.com".

 ·Https://developers.google.com/cloud-messaging/android/android-migrate-fcm#update_server_endpoints

Q1. Does "android.googleapis.com" continue to be supported and available? Is "android.googleapis.com" going to be deprecated?

Q2. Is "android.googleapis.com" an endpoint for GCM 2.0?


② About difference of GCM, FCM end point Submit the request to the sendAPI at the endpoint below push notification could be done at all endpoints.

1) android.googleapis.com/gcm/send
2) gcm-http.googleapis.com/gcm/send
3) fcm.googleapis.com/fcm/send

Q3. When the same request is sent to the above API, will the same response be returned?

Q4. When the same response is returned, what is the difference between the above APIs(1~3)?

Q5. Also, although official website recommends shifting to FCM, is there any meaning to switch the endpoint(1~3)?

Upvotes: 4

Views: 3145

Answers (1)

Anders Emil
Anders Emil

Reputation: 486

All three domain names map to the same server IP today. You should assume that only the fcm subdomain will be available after April 19th 2019.

Upvotes: 4

Related Questions