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 page
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
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.
Yes, they are unique but they are not constant.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With