Closed duydao closed 7 years ago
It's probably just too large of an object to store in SQLite. Note that Cordova has a limitation where all data has to be serialized into strings when sent between the WebView and the native context.
You may want to look into WebSQL or IndexedDB, or break up your JSON object into smaller pieces.
Also the reason it fails in Android but not iOS is probably just due to device differences
Is there a new fix?
@nolanlawson can you put some more light on "or break up your JSON object into smaller pieces"
Thanks for this plugin, we really appreciate it!
I'm getting an out of memory exception when trying to store a 14MB JSON into the database:
Throwing OutOfMemoryError "Failed to allocate a 41535454 byte allocation with 16777216 free bytes and 28MB until OOM
The same JSON loads fine on an iPhone.