question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: Camera plugin: requestPermissions emits and empty object when called

See original GitHub issue

Bug 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
jcesarmobilecommented, Sep 16, 2020

requestPermissions is available for all plugins, but only implemented for Filesystem and Geolocation, so yeah, should be implemented for Camera too.

0reactions
ionitron-bot[bot]commented, Nov 11, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found