简体   繁体   中英

WebSocket client in Webview on Android kitkat v4.4.2 is not able to send messages

MY hybrid Android application that communicates with an websocket server using the websocket client in Android's webview, randomly fails send messages from server side. and this is happened only on API 19 Android devices.

can any one please help me.?

Generally speaking, in mobile applications, it is normal to loose the connection with the server frequently, as the connectivity is not stable. Your code should check the connectivity with the server in regular intervals (every 30 or 60 seconds, for example) and reestablish the connection with the server in case of failure. I don't think that there is something special about kitkat v4.4.2. Maybe it is the device you are using that has a problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM