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

Runtime permission request suppresses actual API call

    XMLWordPrintableJSON

Details

    Description

      Both the Cordova Camera and Geolocation plugins (and likely others) access APIs restricted by Android 6.0's new runtime permissions system. The first time a call is made an allow/deny dialog is presented to the user.

      Neither the success or error callbacks are called when the dialog is dismissed, effectively suppressing the API call.

      If permission is granted then subsequent calls to the API will function as expected. However it does not seem possible to detect whether this dialog has been presented or what the user's response was. This makes it impossible to know when to make a second call to the API.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tom@tnightingale.com Tom Nightingale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: