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

Android InAppBrowser Previous, Next page history buttons do not change with the state of the content

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Master
    • Fix Version/s: None
    • Labels:
    • Environment:

      Android OS 6.0.1, Cordova CLI 6.3.1, cordova-android 5.2.1, cordova-plugin-inappbrowser 1.4.0

      Description

      Steps to reproduce:
      1) Create a simple Cordova Android app with the InAppBrowser plugin pointing to a website. E.g. https://news.google.com
      2) Navigate back and forth between different pages
      3) Observe the history buttons on the toolbar

      Expected behavior:
      The Previous / Next arrow buttons should become highlighted or faded based on where in the page history the content is.
      This behavior is standard on most browsers. The iOS InAppBrowser implements it too.

      Observed behavior:
      The Previous / Next buttons remain highlighted regardless of if it's possible to navigate back or forward in the content.

      This was never implemented for Android so wasn't sure if Issue Type should be a Bug or Improvement. Left it at default.

      I have a potential implementation. Will fork repo and trigger a pull request soon.

        Attachments

        1. InAppBrowserAndroidCurrentHistoryButtons.png
          204 kB
          Arjun Thounaojam
        2. InAppBrowserAndroidImprovedHistoryButtons.png
          202 kB
          Arjun Thounaojam

          Activity

            People

            • Assignee:
              justforgolly Arjun Thounaojam
              Reporter:
              justforgolly Arjun Thounaojam
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: