D
D
diamond422018-07-16 18:53:05
Android
diamond42, 2018-07-16 18:53:05

Is it possible to make WebView work without internet?

There was a task to make a small application that will load a page from the server with a form by URL into the application, and when filling out the form, save the data on the device.
Just as importantly, the form is relatively non-standard and works with a lot of Javascript adding table rows. And the decision suggests itself to use the already existing javascript on the server.
In the absence of the Internet, it is necessary to take data not by URL, but from local storage.
Tell me, is it possible to implement this using the WebView component, or will I have to make a native application?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan, 2018-07-16
@IvanTheCrazy

Really. Just did it today for a client. You need ServiceWorkers.
https://developer.mozilla.org/ru/docs/Web/API/Serv...

S
Satangelus, 2018-07-17
@Satangelus

Can put a local web server? Options and possibilities

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question