Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-5449

Android InAppBrowser virtual keyboard closes on executeScript()

    XMLWordPrintableJSON

Details

    Description

      I am using timer to execute JavaScript inside InAppBrowser so I can show some kind "widget" at the same time when browser is open (since there are no way to make browser window not full screen, I have to do this.. hack?).

      I am using setInterval() to update this "widget" regularly.

      In fact there is no difference what that scripts does, it's enough to do (almost) no-op like this:

      window.setInterval( function() {				
      	self.browser.executeScript({ "code" : "var x;"});
      }, 1000);
      

      How to reproduce:

      • Open InAppBrowser with http://www.google.com.
      • Click on search text input box to start typing.
      • Virtual keybord shows up, but closes just after a moment when next executeScript() is invoked (depending on given interval). And this repeats on every executeScript() later.

      I've tried building with Android Api 8, 10, 18... it's all the same.

      Same on emulator and on real tablet.

      Discovered on 3.0.1, but the same behaviour with 3.1.0.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Talkless Vincas Dargis
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: