Skip to content

ConnectionRequest fails with iOS newVM #1257

@ghost

Description

Original issue 1258 created by codenameone on 2015-01-06T02:24:53.000Z:

What steps will reproduce the problem?

  1. Add a new button to the UI
  2. Add action event to the button as
    ConnectionRequest request = new ConnectionRequest();
    request.setUrl("http://www.google.com");
    request.setPost(false);
    NetworkManager.getInstance().addToQueueAndWait(request);
    Dialog.show("test", new String(request.getResponseData()), "OK", null);
  3. Run on device and press the button

What is the expected output? What do you see instead?

  • Expected to have dialog showed up with HTML contents.
  • However, the dialog shows up with empty string. After a few tries it hangs and crashes.

What version of the product are you using? On what operating system?

  • iPhone 6+, iOS 8.1
  • iPhone 4S, iOS 8.1.1

Please provide any additional information below.

  • By adding "ios.newVM=false", it works perfectly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions