my-notes
my-notes copied to clipboard
Google Drive Auto Sync is grayed out
Good day, Please could you assist me with the steps on how I can setup the Google Drive Auto Sync feature?
Hi, is this problem happening on the version installed from Web Store, or is it a manually installed version (downloaded zip)? Which browser are you using? Any useful messages in the browser's console?
Hi Pavel, I hope you’re well.
Firstly, thank you very much for your reply. I did install the extension from the Web Store. I’m using Google Chrome browser. I’ve uninstalled the extension, cleared the cache, signed off. Signed back in, re installed the extension, and still the option is greyed out. Any worked around to this?
On Tue, 05 Jul 2022 at 19:31, Pavel Bucka @.***> wrote:
Hi, is this problem happening on the version installed from Web Store, or is it a manually installed version (downloaded zip)? Which browser are you using? Any useful messages in the browser's console?
— Reply to this email directly, view it on GitHub https://github.com/penge/my-notes/issues/385#issuecomment-1175319917, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZILFOECWQMNOO2YEOEA2ETVSRWO5ANCNFSM52WD5UNQ . You are receiving this because you authored the thread.Message ID: @.***>
Hi Dev, could you try to check out Chrome's console if any message pops out when you try to enable Google Drive Sync? Here's how to open Chrome's console: https://balsamiq.com/support/faqs/browserconsole/#google-chrome
Hi Pavel, Hope you’re well.
Yeah, sure. I’ll try these steps and revert back to you. Thanks bud!
On Thu, 07 Jul 2022 at 02:02, Pavel Bucka @.***> wrote:
Hi Dev, could you try to check out Chrome's console if any message pops out when you try to enable Google Drive Sync? Here's how to open Chrome's console: https://balsamiq.com/support/faqs/browserconsole/#google-chrome
— Reply to this email directly, view it on GitHub https://github.com/penge/my-notes/issues/385#issuecomment-1176870374, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZILFOFNOAMRWHPEEOI2TRTVSYNA5ANCNFSM52WD5UNQ . You are receiving this because you authored the thread.Message ID: @.***>
Hi Pavel,
As you can see from the screenshot below, I have followed the steps you've recommended, but it does not display any message at all in Chrome's console.
[image: image.png]
On Thu, Jul 7, 2022 at 2:02 AM Pavel Bucka @.***> wrote:
Hi Dev, could you try to check out Chrome's console if any message pops out when you try to enable Google Drive Sync? Here's how to open Chrome's console: https://balsamiq.com/support/faqs/browserconsole/#google-chrome
— Reply to this email directly, view it on GitHub https://github.com/penge/my-notes/issues/385#issuecomment-1176870374, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZILFOFNOAMRWHPEEOI2TRTVSYNA5ANCNFSM52WD5UNQ . You are receiving this because you authored the thread.Message ID: @.***>
Hi, can you try to upload the screenshot again? You should see similar messages to these in the Console:
Permissions - Requesting permission "identity"
Permissions - Acting on added permission "identity"
SYNC - START
SYNC - IN - CREATING NOTE - some_note_name_here
Or at least see some error. Try to also check this page (open in new tab), if things are enabled: chrome://settings/syncSetup
This problem occurs when service worker (basically something in the background that reacts to user actions or other events when they occur) is innactive and so it cannot handle the action. See chrome://extensions
in a New Tab and My Notes details for this info. Clicking on the Refresh icon to reload the extension resolves this issue.
Details
This issue shouldn't be happening in the first place, because service worker is event-based, and it should be started anytime its needed (in case it was shut down and disposed due to not being needed for some time, to free-up resources). In this case, we make following uses:
chrome.storage.local.set # to enable Auto Sync on click
chrome.storage.onChanged.addListener # to react to enabled Auto Sync, to check the checkbox when enabled
Closing this issue as I don't see how I could solve it. One solution in the past used to be, to use background worker and making it persistent which didn't unload it when it wasn't needed. This solution is no longer acceptable in Manifest V3 extensions, where background worker was replaced by the mentioned service worker. This also applies to My Notes.