shripalsoni04 / nativescript-webview-interface

Plugin for bi-directional communication between webView and android/ios
MIT License
89 stars 35 forks source link

Android: Refusing to load URL as it exceeds X characters. #18

Closed danielgek closed 6 years ago

danielgek commented 7 years ago

When you try to send a long message this error appears: chromium: [WARNING:navigator_impl.cc(343)] Refusing to load URL as it exceeds 2097152 characters. This happens because of the targetSdkVersion in manifest is 19+ ( base on chromium ). So, you can use the evaluateJavascript() method instead of loadUrl. loadUrl only work fine without above error in version 18-. https://developer.android.com/guide/webapps/migrating.html.

I will send PR shortly

surdu commented 6 years ago

This should have been fixed in #17

shripalsoni04 commented 6 years ago

As mentioned by @surdu , this should be fixed now because PR #17 is already merged.