P
P
pcdesign2019-03-24 08:59:43
React Native
pcdesign, 2019-03-24 08:59:43

How to make offline application support?

I want people to use my application without internet.
But my database consisting of json files (20 megabytes) does not fit into the limits " approximately 20mb (download), and Android is abo... ". Gives an error "Request body larger than maxBodyLength limit".
It turns out that you need to build an application without a database, and then download these json files from the site and save them somewhere?
Or are there better options?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Alexandrovich, 2019-03-24
@pcdesign

You definitely need to pull data from the north after launching the application to get around this problem. The second question is where to store it all. There is such a thing as persist. This package stores all application state in async storage. But the more data, the dumber the package works. You need to try sqlite storage

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question