Closed ohager closed 2 years ago
I already tried some polling techniques to keep the service worker alive.... still working on some solution otherwise I would need to review and refactor the entire communication infrastructure
After some trials and further research, I am not able to keep the service worker active permanently. It seems that I need to find other ways to establish a robust communication for the Version 3 Scenario.
WORKAROUND
As a workaround at this time there are two possibilities:
[recommended] Use Firefox as long as this issue persists with Chrome
Describe the bug Due to the nature of Service Workers, it goes inactive after some time (about 5 MInutes). Inactive service workers interrupts all kind event listeners, such that no communication between a DApp and the wallet is possible anymore. Only a reload of the DApp reactivates the service worker
To Reproduce Steps to reproduce the behavior:
See also #23
Expected behavior All interaction works without such problems
Screenshots If applicable, add screenshots to help explain your problem.
Browser (please complete the following information):
Additional context This is a known issue in the community and often reported.