bug: Camera plugin: requestPermissions emits and empty object when called
See original GitHub issueBug Report
Capacitor Version
Installed Dependencies:
@capacitor/ios not installed
@capacitor/cli 2.4.1
@capacitor/android 2.4.1
@capacitor/core 2.4.1
@capacitor/electron not installed
Platform(s)
Android
Current Behavior
When the Camera.requestPermissions() is called the response is just a empty object.
Expected Behavior
I expected that the android permission dialog opens.
Code Reproduction
Other Technical Details
npm --version
6.13.4:
node --version
v12.14.1:
pod --version
output (iOS issues only):
Additional Context
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Capacitor Android Plugin Guide
Capacitor Android Plugin Guide. Building Capacitor plugins for Android involves writing Java or Kotlin to interface with Android SDKs.
Read more >PhoneGap / Cordova Camera onResume returns empty object
So I have an Cordova app for Android that uses official Cordova Camera plugin. App uses onResume event in order to restore app...
Read more >Manage and present loading states - Android Developers
The Paging library tracks the state of load requests for paged data and exposes it through the LoadState class.
Read more >viewar-api - npm
Activate the augmented reality camera and the tracking and wait for tracking. ... Added mock calls requestPermissions and queryPermissions.
Read more >The Push Notifications Guide for Ionic & Capacitor - Devdactic
Name (CAPNotifications.DidFailToRegisterForRemoteNotificationsWithError.name()), object: error) } else if let result = result ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
requestPermissions is available for all plugins, but only implemented for Filesystem and Geolocation, so yeah, should be implemented for Camera too.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.