serviceWorker API not available?

Bug 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:

        source={{ html: `<script>alert(navigator.serviceWorker)</script>` }}

Expected behavior:
navigator.serviceWorker API should be available from Android Webview 40?


  • OS: Android
  • OS version: 9
  • react-native version: 0.59.9
  • react-native-webview version: 5.12.0

1 thought on “serviceWorker API not available?

Comments are closed.