wakatime / browser-wakatime

Chrome extension for automatic time tracking and metrics generated from your browsing activity.
https://wakatime.com
BSD 3-Clause "New" or "Revised" License
408 stars 95 forks source link

Support for working offline by saving heartbeats locally #69

Closed alanhamlett closed 1 year ago

alanhamlett commented 6 years ago

Editor plugins support offline coding, and this extension should too. It could store heartbeats in chrome.storage.local with a capacity of 5MB. This would be local to the user's computer and not synced, since the chrome.storage.sync limit of 100KB is too low.

ramajd commented 5 years ago

it will be very good having this feature supported. since wakatime connection issues could happen occasionally.

jvelezpo commented 1 year ago

V3 already hasIndexedDB integrated which supports storage capacity over 50MB which should be fine IMO for the extension/addon Here is where it gets created.

This means when a user gets disconnected from the internet we store heartbeat inIndexedDB, once we detect the user is back online we send the heartbeats to Wakatime API