Fix an issue where SSL certificate data didn't load correctly in game engines such as Cocos because the JavaVM would receive multiple AttachCurrentThread calls from different libraries in the same process. This is unsupported by the JNI.
Instead we avoid a potential VM collision by handling all JNI calls in On_Load and caching the SSL certificates.
AttachCurrentThread
calls from different libraries in the same process. This is unsupported by the JNI. Instead we avoid a potential VM collision by handling all JNI calls in On_Load and caching the SSL certificates.