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

Take picture #8

Open
macarron opened this issue Sep 22, 2015 · 12 comments
Open

Take picture #8

macarron opened this issue Sep 22, 2015 · 12 comments

Comments

@macarron
Copy link

I can't take picture from the inappweb view. But that's work on crosswalk engine. I can work on it but tell me if you have any idea.

regards.

@macarron
Copy link
Author

I have this warning from debugger

Got an activity result, but no plugin was registered to receive it.

@ClaasBrueggemann
Copy link
Owner

are you talking about taking screenshots?

@macarron
Copy link
Author

No taking picture from camera. The camera view open well and the I can take a picture. The camera view close with no error, but my input field still empty and I've this warning in debugger.

@ClaasBrueggemann
Copy link
Owner

So you are trying to take a camera picture in the inappbrowser?

@macarron
Copy link
Author

Yes.
That's work in inappbrowser but not in inappbrowserxwalk...

I'm really sorry about my poor english...

@macarron
Copy link
Author

This work in the XWalkWebView but not in the inappbrowserxwalk. I think it's a really little bug. But I can't find it

@ClaasBrueggemann
Copy link
Owner

So you are loading a website, which is using something like this:

input type="file" accept="image/*;capture=camera">
??

@macarron
Copy link
Author

Yes my website have an input field that open a window to choose an action. Like taking photo from camera or from library. Then the user choose an option and take a picture. After that i've got my field filled with the result.

Something like that in example 5
http://plugins.krajee.com/file-basic-usage-demo

This work everywhere except in the plugin.

@macarron
Copy link
Author

Ok I've got it!!!

I'm working on other improvement, I'll commit it soon.

Regards.

@phic901
Copy link

phic901 commented May 12, 2016

@macarron @ClaasBrueggemann Hello, I am going through same problem as you've had. I've embedded 'inappbroswerxwalk' plugin into my project. But, the input file tag triggered only once. And that doesn't even return the pictures which I selected. I guess you've gone through this problem as well.
I would like to know how to use 'input file' tag on cordova.
Please let me know if you know anything.... I am desperate... :(

@rafaelcanovas
Copy link

@macarron @phic901

Having the same issue. triggers only the first time, then I cannot touch on it again on the lifetime of the webview. I have to close the app and open again so I can use it again.

Is this related to the inappbrowserxwalk or the xwalk webview?

@diaclavijo
Copy link

Hello,

I am having the same issue: I think this might be related to this -> https://crosswalk-project.org/jira/browse/XWALK-6456

They have specified the same bug description.

But in the comments the way to reproduce it, does not imply using an external URL, so they are rendering a page inside Cordova. In this case, it works, the problem appears when the file is meant to be uploaded using inappbrowserxwalk

I tried changing the permissions as shown in the ticket:

<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

But no success, it is still failing.

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