MatthieuLemoine / electron-push-receiver

A module to bring Web Push support to Electron allowing it to receive notifications from Firebase Cloud Messaging (FCM).

Home Page:https://medium.com/@MatthieuLemoine/my-journey-to-bring-web-push-support-to-node-and-electron-ce70eea1c0b0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is local time used for connecting to FCM server?

aquacode opened this issue · comments

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).