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

cordova-android does not support multiple runtime permission requests

    XMLWordPrintableJSON

Details

    Description

      If a plugin makes multiple permission requests before the user grants/denies them, only the last one will get returned. More importantly, requests from multiple plugins can interfere with each other.

      For example, if Plugin A makes a permission request and then Plugin B immediately makes another permission request before the user grants/denies Plugin A's request, then Plugin A will never receive the results of its request (Android seems to return permission requests in reverse order of when they were made, so Plugin B will actually get the correct result back).

      I've got a fix for this and will open a PR momentarily.

      Attachments

        Activity

          People

            riknoll Richard B Knoll
            riknoll Richard B Knoll
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: