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

InAppBrowser not firing loadstart event on android

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.4.0
    • Fix Version/s: None
    • Component/s: Plugin InAppBrowser
    • Labels:
    • Environment:

      Android API 21

      Description

      loadstart event is not firing. there are no issues with loadstop and exit.
      Simple snippet:

      var ref = cordova.InAppBrowser.open('http://www.google.com', '_blank');
      ref.addEventListener('loadstart', function (event)

      { alert('started'); }

      );
      ref.addEventListener('loadstop', function (event)

      { alert('stopped'); }

      );

      only the 'stopped' alert is fired.

        Issue Links

          Activity

          Hide
          nvazquez nvazquez added a comment -

          +1

          Show
          nvazquez nvazquez added a comment - +1
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 8da5e25eeee892590f3ddb781a4fde8e9f8ef512 in cordova-plugin-inappbrowser's branch refs/heads/master from Joe Bowser
          [ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-inappbrowser.git;h=8da5e25 ]

          CB-10407: Re-adding onPageStarted to re-add LOAD_START, even though it's in the wrong place

          Show
          jira-bot ASF subversion and git services added a comment - Commit 8da5e25eeee892590f3ddb781a4fde8e9f8ef512 in cordova-plugin-inappbrowser's branch refs/heads/master from Joe Bowser [ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-inappbrowser.git;h=8da5e25 ] CB-10407 : Re-adding onPageStarted to re-add LOAD_START, even though it's in the wrong place
          Hide
          nraboy Nic Raboy added a comment -

          I am also experiencing the same. The new WebViewClass does not trigger the loadstart event in Android. iOS is still working fine and it looks like there were no changes in iOS regards to the WebViewClass

          Show
          nraboy Nic Raboy added a comment - I am also experiencing the same. The new WebViewClass does not trigger the loadstart event in Android. iOS is still working fine and it looks like there were no changes in iOS regards to the WebViewClass
          Hide
          aanand1008 Anand Kumar added a comment -

          I am also facing same issue. For me, it is not firing loadstart, exit and loadstop event. I have tested it in android device and android emulator in vain.

          Kindly help us.

          Show
          aanand1008 Anand Kumar added a comment - I am also facing same issue. For me, it is not firing loadstart, exit and loadstop event. I have tested it in android device and android emulator in vain. Kindly help us.
          Hide
          sgrebnov Sergey Grebnov added a comment -

          I currently see that `start` event is called three times and `stop` is triggered once (plugin version from repo master).

          Show
          sgrebnov Sergey Grebnov added a comment - I currently see that `start` event is called three times and `stop` is triggered once (plugin version from repo master).
          Hide
          sgrebnov Sergey Grebnov added a comment -

          'start' event is triggered three times in cordova-plugin-inappbrowser@1.1.1 as well.

          Show
          sgrebnov Sergey Grebnov added a comment - 'start' event is triggered three times in cordova-plugin-inappbrowser@1.1.1 as well.
          Hide
          sgrebnov Sergey Grebnov added a comment -

          Events are triggered correct as there are redirects on the page and events are triggered w/ correct urls.

          Verified Joe Bowser fix, resolving as fixed..

          Show
          sgrebnov Sergey Grebnov added a comment - Events are triggered correct as there are redirects on the page and events are triggered w/ correct urls. Verified Joe Bowser fix, resolving as fixed..
          Hide
          nraboy Nic Raboy added a comment -

          When will it receive a new tag? Most people, myself included, install the plugin like so:

          cordova plugin add cordova-plugin-inappbrowser

          To my knowledge, it does not grab the master.

          Best,

          Show
          nraboy Nic Raboy added a comment - When will it receive a new tag? Most people, myself included, install the plugin like so: cordova plugin add cordova-plugin-inappbrowser To my knowledge, it does not grab the master. Best,
          Hide
          jcesarmobile jcesarmobile added a comment -

          It grabs the latest tag.
          It will be released when everything is ready, can't tell you a date. There were other issues on other platforms and are being fixed too. And we are adding tests so this doesn't happen again.
          If you are interested in releases you can subscribe to de developer mailing list.

          Or you can install from github
          cordova plugin add https://github.com/apache/cordova-plugin-inappbrowser

          Show
          jcesarmobile jcesarmobile added a comment - It grabs the latest tag. It will be released when everything is ready, can't tell you a date. There were other issues on other platforms and are being fixed too. And we are adding tests so this doesn't happen again. If you are interested in releases you can subscribe to de developer mailing list. Or you can install from github cordova plugin add https://github.com/apache/cordova-plugin-inappbrowser
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 8da5e25eeee892590f3ddb781a4fde8e9f8ef512 in cordova-plugin-inappbrowser's branch refs/heads/1.2.x from Joe Bowser
          [ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-inappbrowser.git;h=8da5e25 ]

          CB-10407: Re-adding onPageStarted to re-add LOAD_START, even though it's in the wrong place

          Show
          jira-bot ASF subversion and git services added a comment - Commit 8da5e25eeee892590f3ddb781a4fde8e9f8ef512 in cordova-plugin-inappbrowser's branch refs/heads/1.2.x from Joe Bowser [ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-inappbrowser.git;h=8da5e25 ] CB-10407 : Re-adding onPageStarted to re-add LOAD_START, even though it's in the wrong place
          Hide
          onkarjanwa onkar added a comment - - edited

          I still facing the same issue in android device with version 5.1.1, i have added latest version of "cordova-plugin-inappbrowser" plugin 1.3.0.

          Blank window opens up and when i go back this logs appear.

          Error in Success callbackId: InAppBrowser1834279798 : ReferenceError: loginWindow_loadStopHandler is not defined

          Uncaught ReferenceError: loginWindow_loadStopHandler is not defined
          loginWindow_exitHandler @ openfb.js:142
          Channel.fire @ cordova.js:822
          InAppBrowser._eventHandler @ inappbrowser.js:47
          cb @ inappbrowser.js:104
          cordova.callbackFromNative @ cordova.js:293
          processMessage @ cordova.js:1081
          processMessages @ cordova.js:1104
          pollOnce @ cordova.js:973
          pollOnceFromOnlineEvent @ cordova.js:960

          Show
          onkarjanwa onkar added a comment - - edited I still facing the same issue in android device with version 5.1.1, i have added latest version of "cordova-plugin-inappbrowser" plugin 1.3.0. Blank window opens up and when i go back this logs appear. Error in Success callbackId: InAppBrowser1834279798 : ReferenceError: loginWindow_loadStopHandler is not defined Uncaught ReferenceError: loginWindow_loadStopHandler is not defined loginWindow_exitHandler @ openfb.js:142 Channel.fire @ cordova.js:822 InAppBrowser._eventHandler @ inappbrowser.js:47 cb @ inappbrowser.js:104 cordova.callbackFromNative @ cordova.js:293 processMessage @ cordova.js:1081 processMessages @ cordova.js:1104 pollOnce @ cordova.js:973 pollOnceFromOnlineEvent @ cordova.js:960

            People

            • Assignee:
              Unassigned
              Reporter:
              takumii@yahoo.com andyz
            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development