Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-35032

SecureSocket Stopped working for android mobile projects

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Apache Flex 4.15.0
    • Apache Flex 4.14.1
    • .Unspecified - Mobile
    • None
    • Android

    Description

      After updating to 4.15, SecureSocket keep having IOError for Android Platform. Works ok on PC/iOS.
      Problem are not present in 4.14.1.

      code for reference:
      -----------------------------------------------------------------
      var URL:String = "the.url";
      var PORT:int = 7777;
      var skt:SecureSocket = new SecureSocket();
      skt.addEventListener(Event.CONNECT, function(e:Event):void{
      skt.writeUTFBytes(JSON.stringify(obj));
      });
      skt.addEventListener(ProgressEvent.SOCKET_DATA, function(e:ProgressEvent):void{
      var response:String = skt.readUTFBytes(skt.bytesAvailable);
      trace(response);
      });
      skt.addEventListener(IOErrorEvent.IO_ERROR, function(e:IOErrorEvent):void{
      trace(ObjectUtil.toString(e));
      });
      skt.connect(URL, PORT);
      -----------------------------------------------------------------

      Attachments

        Activity

          People

            Unassigned Unassigned
            Sakana Mirza Ceyzar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: