We have developed a PWA Progressive Web App in React and we need to run background service to fetch the location of user at all the time as PWA app cannot do that so we created a native wrapper to handle this
The Native Android Wrapper is a WebView which load the PWA app url
Everything works fine till here , Now we need to do communication from Android to PWA React App and from PWA React App to Android
we have tried adding webView.addJavascriptInterface and the guide lines mentioned in
https://developer.android.com/reference/android/webkit/WebView
but nothing works
can any one help with suggestions or links to communicate between Native Wrapper and a PWA app
Thanks
We have tried the Guideline of Android created Bridge between Android and React PWA app but did not work https://developer.android.com/reference/android/webkit/WebView