You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Details: Like above isssue, service worker run only when it listen event it will not available all time. This mean extension can not run all time like current background page of MV2, tt run only when use have any interaction. We need to change architect to suitable with them but the good new it will help us optimize extension performance when computer idle. We need to know when which event can make service worker wake up?
Solution: Use fetch request to wake up service worker before use it. We can create some special fetch request to service worker and this response utils service worker is ready
Details: Service worker not run full time but we need to can have more than one service woker? If have more than one service workers how to sync their state between each other?
Detail: When service worker terminated all WS connection on it will be disconnected, some time we need very long time to connect them again. Have any way to backup and restore to next sevice worker?
Solution: Researching...
Idea to resolve above problems
Is this idea can be implement and work well on MV3? Have any idea better? Need to research about life cycle of service worker.
Database
Use IndexedDB instead of Chrome.local.storage
Details: The features of chrome.local.storage are very limited and difficult to extend.
Solution: Change to use IndexedDB and Dexie frameworks.
The text was updated successfully, but these errors were encountered:
Overview
There are many challenges when switching to MV3, this issue is created to listing them and their solutions
Challenges
WASM
manifest.json
Service worker
Events
fetch
request to wake up service worker before use it. We can create some specialfetch
request to service worker and this response utils service worker is readyMessage passing problem
Life cycle of service worker of an extension
Synchronize state:
Backup and restore websocket connection
Idea to resolve above problems
Database
The text was updated successfully, but these errors were encountered: