javascript - What is the best way to store JSON data within mobile hybrid app? -
there few options in market store json data within mobile app (indexeddb, websql, etc.).
i'm looking best solution (which not deprecated , supported commonly used browsers) store json data , use within mobile app created presentation / demo / portfolio purposes.
my static json file structure looks follows:
{ "products": [ .. several records ], "users": [ ... several records ], "factdata": [ ... few thousand records ] }
the question is, technology / method should use store above json data , not worry support ?
local storage provides simple, synchronous key/value pair storage, performs poorly large amounts of data , possibly lock ui.
websql depracated can still use it. can store around 5mb of data.
indexeddb not supported on ios.
i probabaly go websql now, other ways of storing data in json. maybe create database , api , make authorized rest calls it
Comments
Post a Comment