Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between server key and legacy server key in FCM(Firebase cloud message )

I little confused with the server key I have to use in the in the FCM. There are showing two server key now.Please check the screen shot of the pageenter image description here

In the picture above shows the server key and legacy server key which one I have to use.Anyone has any idea what is the difference between the two?

Thanks

like image 740
Nithinlal Avatar asked Dec 29 '16 09:12

Nithinlal


People also ask

What is server Key in FCM?

What is a Firebase Server Key? A Firebase Server Key and Firebase Sender ID are required in order to send push notifications to Android mobile app devices. The goal of this section is to provision your Firebase Server Key and Firebase Sender ID for use in OneSignal.

Is FCM token unique per device?

Yes, they are unique but they are not constant.

What is TTL in FCM?

They are used for the same purpose -- setting the lifespan of the payload. Difference is that ttl is the key for FCM v1 while time_to_live is for FCM Legacy. Follow this answer to receive notifications.


1 Answers

firebaser here

We recently switched the format of the server key. The new keys are of a much longer format, which allows for more entropy.

The older format will continue to work, but we recommend that you switch to the new format.

like image 186
Frank van Puffelen Avatar answered Oct 04 '22 04:10

Frank van Puffelen