In this source:
https://github.com/apache/cordova-android/blob/master/framework/src/org/apache/cordova/NativeToJsMessageQueue.java

the MAX_PAYLOAD_SIZE seems to be 500 MB which could be way, way too large.
I have client who reported an issue with OutOfMemoryError, looks like an
attempt to allocate 148 MB with only 25 MB free. I have already adjusted my
own plugin to send the results with maximum chunk size of 5-10 MB.

Considering that the new major release is happening soon, is there any
chance we could get this adjusted now?

I think it would be ideal to support a configuration parameter, if anyone
has time to work on it.

I hope I don't have to support a custom workaround fork for too long.

Chris

https://www.linkedin.com/in/chrisbrody/

Reply via email to