Android Question WSS SSL Issues

Discussion in 'Android Questions' started by techknight, Apr 17, 2019.

  1. techknight

    techknight Well-Known Member Licensed User

    So, I have a specific device running Android 4.4.4 which I cannot update or change for any reason.

    I am developing an App for it which uses WSS, and I cannot get WSS to work.

    I found this thread:

    https://www.b4x.com/android/forum/threads/ssl-websocket-client.88472/page-2#post-560044

    But, it requires the google play services which this device does NOT have or use, it has no google services at all outside of the OS. I can install APKs to the device, etc just like any normal device. But its a Sign controller so I cant actually click buttons or anything along those lines. its just an output device only.

    So given that, How do I get the WSS to work? I attached the Error message screenshot I get when I run the network provider program.

    download.jpg

    Any ideas?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. techknight

    techknight Well-Known Member Licensed User

    Is there how-to for that? Also is this for the Server side or the Client side? Because I have no control of the server, I am trying to integrate my app/software into an existing API/System that is in place which uses websockets.
     
  4. OliverA

    OliverA Well-Known Member Licensed User

  5. Erel

    Erel Administrator Staff Member Licensed User

    Code:
    Dim ws1 As WebSocket
        
    Dim cs As CustomTrustManager
        cs.InitializeAcceptAll
        ws1.Initialize(
    "ws")
        ws1.SetCustomSSLTrustManager(cs)
    Depends on Net library.

    It will probably won't help in this case.
     
    techknight likes this.
  6. techknight

    techknight Well-Known Member Licensed User

    It worked for the API server! Not your server though.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice