My Chrome extension is a simple tool that utilizes the chrome.storage API to keep track of tasks in a organized list. Whenever there is an update to the task list, the array is saved to chrome.storage.sync.
I have both of my laptops configured with the Chrome extension and I am signed into the same Google account on both devices.
There are times when updating the task list on one laptop results in immediate reflection of the changes on the other laptop. However, there are also instances where the updates take a long time to sync between the two devices. The inconsistency is puzzling - sometimes restarting Chrome on the second laptop will display the updated list.
No console errors are showing up on either laptop, and the tasks are being saved correctly on the first laptop, they just aren't transferring over to the second one.
The chrome.storage.sync API has certain limitations which make me consider if I may be exceeding them. A likely limitation is the following:
10 MAX_SUSTAINED_WRITE_OPERATIONS_PER_MINUTE
"This refers to the maximum number of set, remove, or clear operations allowed per minute, sustained over 10 minutes. Any updates surpassing this limit will fail immediately and trigger runtime.lastError."
From what I understand, as long as there are not more than 10 operations within a minute for 10 consecutive minutes (100 total), the limit should not be exceeded. If I was breaching this limit, I would expect to see a console error or encounter issues saving the tasks locally.
Overall, is there a way to troubleshoot problems with Chrome sync? Is some level of flakiness to be anticipated?