Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera return 20 , after implementing smallcase plugin (Ionic 6) #794

Closed
jagatb880 opened this issue Jun 4, 2022 · 7 comments
Closed

Camera return 20 , after implementing smallcase plugin (Ionic 6) #794

jagatb880 opened this issue Jun 4, 2022 · 7 comments

Comments

@jagatb880
Copy link

I am getting error in camera while taking photo. (gallery is working fine). It throws 20 as a error.

I am implemented below plugin:

"com.scgateway.phonegap": "git+https://github.com/smallcase/gw-mob-sdk-cordova.git",

if I delete this plugin the camera is working fine , but when i add the camera take photo not working .



I am using below camera plugins:

"@awesome-cordova-plugins/camera": "^5.43.0",

"cordova-plugin-camera": "^6.0.0",

"cordova-plugin-camera": {
    "ANDROIDX_CORE_VERSION": "1.6.+"
  }
@jagatb880 jagatb880 changed the title Camera return 20 , after implementing smallcase plugin Camera return 20 , after implementing smallcase plugin (Ionic 6) Jun 4, 2022
@breautek
Copy link
Contributor

breautek commented Jun 9, 2022

Error code 20 is a permission error.

gw-mob-sdk-cordova declares the CAMERA permission. The camera permission isn't required for this plugin but does introduce some caveats.

Camera permission is to use the camera APIs programmatically, which this plugin does not do, as this plugin offloads the responsibility to the device's camera app. However, if the application has the CAMERA permission declared, then the app must have the CAMERA permission granted, even if you're using intents like this plugin does.

This plugin will attempt to request the camera permission if it's declared in the manifest, but if you have previously denied permission, the OS may remember that choice and auto reject the permission grant.

I would advise to double check your permission grants in the app settings.

@SaurabhSalunkeGT
Copy link

i have same issue i have given permissions also

@SaurabhSalunkeGT
Copy link

still my camera doesnt working only for android 13

@brunoalex
Copy link

any update ?

@ghost
Copy link

ghost commented Jul 24, 2023

any update? any one found at least work around

@hiteshbasware
Copy link

still my camera doesnt working only for android 13

Permissions have been updated for Android13 so the names and related checks needs to be updated in cordova plugins java files. This is resolved in #840

This needs to be merged into master, we are waiting for that till then if you want you can use this using direct git link in package.json

@breautek
Copy link
Contributor

breautek commented Sep 6, 2023

Should be fixed by #844

@breautek breautek closed this as completed Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants