serviceWorker API not available?
See original GitHub issueBug description: navigator.serviceWorker API unavailable within webview. User agent reported by the webview: Mozilla/5.0 (Linux; Android 9; ONEPLUS A3010 Build/PQ2A.190305.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/72.0.3626.121 Mobile Safari/537.36
To Reproduce:
<WebView
source={{ html: `<script>alert(navigator.serviceWorker)</script>` }}
/>
Expected behavior: navigator.serviceWorker API should be available from Android Webview 40?
Environment:
- OS: Android
- OS version: 9
- react-native version: 0.59.9
- react-native-webview version: 5.12.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
Service Worker API - MDN Web Docs
Service workers essentially act as proxy servers that sit between web applications, the browser, and the network (when available).
Read more >serviceWorker API not available? · Issue #645 · react-native ...
Expected behavior: navigator.serviceWorker API should be available from Android Webview 40? Environment: OS: Android; OS version: 9; react- ...
Read more >Why is Service worker not working in Chrome? - Stack Overflow
I am trying to make a PWA and am currently testing to see if my manifest and service worker are working. In my...
Read more >Service workers - web.dev
The Service Worker API is even available on platforms that do not support PWA installation, such as Safari and Firefox on desktop devices....
Read more >Angular service worker introduction
Service workers augment the traditional web deployment model and empower applications to deliver a user experience with the reliability and performance on ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mhingston did you end up resolving this somehow, or choosing another platform?
navigator.serviceWorker
won’t be available via inline HTMLit can only be used on a webpage that’s loaded over SSL, i.e.