You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/06/27 00:19:08 UTC

[GitHub] [cordova-plugin-camera] ilyakamens opened a new issue #471: [Android] Permission denied when trying to launch camera

ilyakamens opened a new issue #471: [Android] Permission denied when trying to launch camera
URL: https://github.com/apache/cordova-plugin-camera/issues/471
 
 
   # Bug Report
   
   ## Problem
   
   I'm unable to launch the camera on Android.
   
   ### What is expected to happen?
   
   The camera should launch.
   
   ### What does actually happen?
   
   The error callback is called with a value of `20`, which I believe is `PERMISSION_DENIED_ERROR`: https://github.com/apache/cordova-plugin-camera/blob/master/src/android/CameraLauncher.java#L98
   
   ## Information
   
   It's the only call I make on the page (after device is ready, of course).
   
   ### Command or Code
   
   ```
   window.navigator.camera.getPicture(
     (data: any) =>  alert(`success: ${data}`),
     (err: any) => alert(`error: ${err}`),
   );
   ```
   
   ### Environment, Platform, Device
   
   I've tried on an LG K20 PLUS running Android 7.0 and a Galaxy S9 running Android 9.
   
   ### Version information
   
   ```
   $ cordova --version
   9.0.0 (cordova-lib@9.0.1)
   ```
   
   ```
   $ cordova platforms
   Installed platforms:
     android 8.0.0
     ios 5.0.0
   ```
   
   ```
   $ cordova plugins list
   cordova-custom-config 5.1.0 "cordova-custom-config"
   cordova-plugin-add-swift-support 2.0.1 "AddSwiftSupport"
   cordova-plugin-advanced-http 2.0.6 "Advanced HTTP plugin"
   cordova-plugin-android-referrer 1.0.0 "cordova-plugin-android-referrer"
   cordova-plugin-androidx 1.0.2 "cordova-plugin-androidx"
   cordova-plugin-androidx-adapter 1.0.2 "cordova-plugin-androidx-adapter"
   cordova-plugin-appsflyer-sdk 4.4.15 "AppsFlyer"
   cordova-plugin-backbutton 0.3.0 "Backbutton"
   cordova-plugin-camera 4.0.3 "Camera"
   cordova-plugin-device 2.0.2 "Device"
   cordova-plugin-dialogs 2.0.1 "Notification"
   cordova-plugin-facebook4 4.2.1 "Facebook Connect"
   cordova-plugin-file 6.0.1 "File"
   cordova-plugin-firebase 2.0.5 "Google Firebase Plugin"
   cordova-plugin-geolocation 4.0.1 "Geolocation"
   cordova-plugin-globalization 1.11.0 "Globalization"
   cordova-plugin-inappbrowser 3.1.0-dev "InAppBrowser"
   cordova-plugin-ionic-webview 4.0.1 "cordova-plugin-ionic-webview"
   cordova-plugin-keyboard 1.2.0 "Keyboard"
   cordova-plugin-localtunnel 2.0.3-dev "LocalTunnel"
   cordova-plugin-network-information 2.0.2-dev "Network Information"
   cordova-plugin-request-location-accuracy 2.2.3 "Request Location Accuracy"
   cordova-plugin-request-review 1.0.0 "Request Review"
   cordova-plugin-shared-preferences 0.0.1 "Cordova Plugin for Android SharedPreferences"
   cordova-plugin-sqlite-2 1.0.6 "SQLitePlugin"
   cordova-plugin-statusbar 2.4.2 "StatusBar"
   cordova-plugin-whitelist 1.3.3 "Whitelist"
   cordova-plugin-x-socialsharing 5.4.4 "SocialSharing"
   cordova.plugins.diagnostic 4.0.12 "Diagnostic"
   es6-promise-plugin 4.2.2 "Promise"
   ionic-plugin-deeplinks 1.0.20 "Ionic Deeplink Plugin"
   phonegap-plugin-mobile-accessibility 1.0.5-dev "Mobile Accessibility"
   ```
   
   Mac OS X 10.14.5
   
   ## Checklist
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org