MatthieuLemoine / electron-push-receiver

A module to bring Web Push support to Electron allowing it to receive notifications from Firebase Cloud Messaging (FCM).
https://medium.com/@MatthieuLemoine/my-journey-to-bring-web-push-support-to-node-and-electron-ce70eea1c0b0
MIT License
194 stars 69 forks source link

Is local time used for connecting to FCM server? #82

Open aquacode opened 3 years ago

aquacode commented 3 years ago

My electron app is not yet opened My server sends an FCM message with timestamp of 18:00 UTC with ttl of 10 seconds I wait 10 seconds Start the electron app The app receives the FCM message

Is the electron app using local time when it connects to the FCM server such that if the local time is say 13:00 (local time zone) the FCM message on the server hasn't expired since it was sent with a timestamp of 18:00 UTC?

I don't know any other reason why all FCM messages are received when the app starts (if it has missed FCM messages being offline).