How to use native sqlite in ios webview?

I just want to develop a webview based ios application. Offline storage must be used. I know that html5 offline storage is supported by webview. But I just want to use my own sqlite file (and not the one built into webkit), like another iOS app. So can someone please give me some tips?

+3
source share
2 answers

Do you implement the database through javascript? If so, check out this great, free e-book app for creating iPhone apps. In the chapter on the customer database, you should get started.

http://ofps.oreilly.com/titles/9780596805784/ch05.html#ch05_id35933084

welcomes

Andrew

0
source

webSQL is available in UIWebViews.

However, if you use Cordova, the convention should use the SQLite plugin. GIYF.

I personally like to use web storage wrappers for this. Lawnchair.js and persistence.js were earlier shell solutions, but I like Mozilla the most localForage. This makes it easy and simple to save any simple JS primitive / object / blob.

localForage - , webSQL SQLite. API -db , ( : localStorage. [ ] HTML-: webSQL). . . .

0

Source: https://habr.com/ru/post/1773754/


All Articles