COMPLEX_STRING_MAXIMUM_LENGTH member

This constant is the length of the largest string that is guaranteed to be successfully stored on Android.

The limit depends on how many bytes the string takes up when encoded with UTF-8 (under which encoding characters can take up to 4 bytes). This is the maximum length of a string for which every character takes all 4 bytes. Note that this size restriction is present only on Android and not iOS.

Syntax

<constant> COMPLEX_STRING_MAXIMUM_LENGTH

Source

encryptedstorage.js, line 306.