WebSocket in Android WebView

前端 未结 3 827
长发绾君心
长发绾君心 2020-12-14 10:44

today my problem is that I am developing an app that is using a WebSocket. On iOS everything is working out fine but on android the WebView doesn\'t support the WebSocket. W

3条回答
  •  有刺的猬
    2020-12-14 11:09

    check your error code first;if the code is :ERR_CLEARTEXT_NOT_PERMITTED; Try to add android:usesCleartextTraffic="true" to you application tag in your AndroidManifest.xml like below:

     
    

提交回复
热议问题