cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darryl Pogue <>
Subject Android 6 permission prompts for Web APIs
Date Tue, 14 Jun 2016 23:34:35 GMT
Hey folks (in particular Joe),

While cordova-android 5.x gives plugin developers the tools needed for
prompting for runtime permissions on Android 6, there's a gap where
some natively supported web APIs fail to prompt for permission.

Geolocation is one example, but the plugin handles that case for us.
Other cases that people are running into are the camera and audio
permissions needed for APIs like getUserMedia(). In those cases, even
if the permissions are listed in the AndroidManifest, users need to go
into the settings app and manually enable those permissions for the
app before some JS APIs will work.

Apparently this was also an issue for some of the Chrome team's
internal testing apps, and they created a workaround that prompts for
runtime permissions when the WebChromeClient permission request
callback is called. The relevant diff is here:

Is this something that we would be interested in adding to the
cordova-android platform?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message