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

source configuration. not working. can't enable for CameraSource.Camera / CameraSource.Photos #83

Closed
aacassandra opened this issue May 12, 2021 · 3 comments

Comments

@aacassandra
Copy link

aacassandra commented May 12, 2021

Hello friend. thanks for this plugin. maybe im found the problem
im using:
"@ionic/pwa-elements": "^3.0.2",
ionic vue
"@capacitor/core": "2.4.5",

Im using this plugin for my pwa apps. i want this plugin with only source.camera not source.prompt, but im still getting source.prompt. I've also tried source.photos but it still generates source.prompt. I do not know. is this a bug am i something wrong. please help my friend. Thank you in advance.

the rotate button also doesn't work on the web pwa. for mobile, I don't know, because I haven't tested it and there is no interest there

this my code

import { Plugins, CameraResultType, CameraSource } from '@capacitor/core';
...
Camera.getPhoto({
    quality: 100,
    source: CameraSource.Camera,
    resultType: CameraResultType.Base64
}).then((res) => {
    console.log(res)
})

i have reproduced this issue in this repo, you can clone this repo and run this after cloning
npm install && npm run serve
look src/components/ExplorerContainer.vue
https://github.com/aacassandra/ionic-vue-camera-testing

Screenshot 2021-05-12 at 19 40 28

sorry about my bad english

@aacassandra aacassandra changed the title source: CameraSource.Camera still show CameraSource.Prompt source configuration. not working. can be change to CameraSource.Camera / CameraSource.Photos May 12, 2021
@aacassandra aacassandra changed the title source configuration. not working. can be change to CameraSource.Camera / CameraSource.Photos source configuration. not working. can't be change to CameraSource.Camera / CameraSource.Photos May 12, 2021
@aacassandra aacassandra changed the title source configuration. not working. can't be change to CameraSource.Camera / CameraSource.Photos source configuration. not working. can't enable for CameraSource.Camera / CameraSource.Photos May 12, 2021
@glennvdw
Copy link

I'm facing the same issue.

The problem is here:

<div class="pick-image" onClick={this.handlePickFile}>

There is no conditional for showing the <div class="pick-image">.

@aacassandra
Copy link
Author

hmm. there doesn't seem to be a solution at this point

@jcesarmobile
Copy link
Member

the screenshot is showing the camera, that's how the camera looks like.

in fact prompt doesn't work yet, will work soon after ionic-team/capacitor-plugins#487 gets merged

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

3 participants