Make notifications work in Tauri app

Parent: #680

Child ticket: #739

Included in this PR: Refactor service worker access - pr summary