-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Out of memory exception on Android #45
Comments
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.
The text was updated successfully, but these errors were encountered: