Extensions Blog Press Contribute Support FAQ Videos Changelog About Contact English Dark mode
Chrome extensions you can't live without!
Extensions Blog Press Contribute Support FAQ Videos About Contact

Is it possible to set custom polling update?

For reasons I have not yet been able to figure out the real-time syncing as mentioned in https://jasonsavard.com/wiki/Push_Notifications does not work for some folks in our organization. I don't think it is an issue with the extension but rather GCM/FCM -- or something.

Either way, it'll probably never get fixed.

So I am wondering if there is a way I can set a custom poll interval for Google Calendar updates? If there is a restriction to the GCP project the extension is using, would there be a way I can make a copy of the extension code, modify the polling interval, and use my own GCP project?

Comments

  • So you are correct that there restrictions and quotas have a monthly cost to maintaining the extensions. The realtime notifications helped reduce this, however I still use a polling interval as backup to always make sure the data gets synced. More info here: https://jasonsavard.com/wiki/Calendar_polling_interval

    https://jasonsavard.com/wiki/Google_Calendar_Quota

    I could open a ticket and investigate the possibility of more frequent polling for "premium"+ users.

  • Any thoughts on a self-hosted/copy of the extension for premium+ users? That way we can use our own GCP project. Thoughts?

  • edited January 20

    The code is not open source so that wouldn't be possible. Just curious is the backup polling working but just not frequent enough I assume.

  • Yeah. With the push notifications not working, the polling is just not frequent enough. For organizations that have their own G-Suite Enterprise environment it'd be easy to use their own GCP project.


    It would be more work for you but another idea is to add capability to your extension/UI to specify a custom GCP project. I've seen some tools like rclone offer this feature and it works great. But you'd have to make changes to your code so its only an idea if you'd entertain it. You could even market it -- like a cheaper cost to unlock all the features if someone uses their own GCP project cause that means less hits to your GCP project.

  • Interesting ok, i'll queue this for investigation. Just curious what % of your users do you think are encountering the issue?

  • I will reply to the existing email chain you and I have.

  • I noticed you are writing from the Edge browser which doesn't yet support realtime notifications. Are all your users using Chrome?

  • Ha!

    I/we are using Chrome for the extension.

    I do wish Edge would add the feature.

  • Good news, after looking into quotas again it seems Google changed their how their quotes worked recently, I will be pushing out a new version with more frequent polling intervals. Note that real-time notifications are still the main way users will get their notifications, the polling interval is just a backup method.


    https://developers.googleblog.com/2021/06/the-google-calendar-api-has-changed-how-we-manage-API-usage.html

  • I just pushed out v29.0.2 with 5x more frequent polling, you can force the update with this https://jasonsavard.com/wiki/Extension_Updates

    let me know how it goes.

  • Thanks. Will try it out. May I ask how often it polls now?

  • edited February 4

    So your an early beta tester as I'm still fine tuning the polling and monitoring the quota as I roll out the change to more users. Currently the main calendar is polling at the most frequent rate of once per hour. Note if real-time updates are working it will update immediately.

  • Most users should now be on the latest extension version with more frequent polling, have you noticed an improvement?

  • Yes a bit. But the lack of instant updates is a problem. I am looking into it with our tech support and Google.

This website uses cookies to ensure you get the best experience on our website. More info
Got it!