Giter VIP home page Giter VIP logo

Comments (7)

penge avatar penge commented on June 21, 2024

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?

from my-notes.

DevlinTech avatar DevlinTech commented on June 21, 2024

from my-notes.

penge avatar penge commented on June 21, 2024

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

from my-notes.

DevlinTech avatar DevlinTech commented on June 21, 2024

from my-notes.

DevlinTech avatar DevlinTech commented on June 21, 2024

from my-notes.

penge avatar penge commented on June 21, 2024

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

from my-notes.

penge avatar penge commented on June 21, 2024

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.

from my-notes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.