1
I have an app running a webview. It’s a web system and the webview with the app.
In the system, it has certain actions that the system sends push notification to the user.
I made the integration with firebase cloud messaging Javascript. But it does not work in webview, only accessing directly from the browser.
For what I was researching, I would have to configure the javascript part, for web, and in webview configure it again to work in webview, but my knowledge of Java is very little, and I use the database on the web to send the push.
Does anyone know if I can do this integration via Javascript and work in both the browser and webview?
I believe that the problem of this is that webView could not be destroyed, for example if close the app or then idle time finish it (cell phone consumption management does this because of battery and performance) when placed in the background for a long time or opens another heavy app or while your app is open webView will be able to notify, if not closed. The ideal would be to create a Task (background service) that would read a json format and send pushs, totally independent of webView.
– Guilherme Nascimento