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

Call to Camera plugin from second webview, no response #4

Open
litiobat opened this issue Aug 4, 2015 · 2 comments
Open

Call to Camera plugin from second webview, no response #4

litiobat opened this issue Aug 4, 2015 · 2 comments
Labels

Comments

@litiobat
Copy link

litiobat commented Aug 4, 2015

Hi!
I've found other bug in Android. If you call from 2nd webview to an external action (app pause/resume), like navigator.camera.getPicture(success, fail, options), you'll get this error on resume:
"Got an activity result, but no plugin was registered to receive it."
The app lost thread and can't manage response.
Can you help me to find (and think) where is the bug?
Thank you very much!

@arturokunder
Copy link
Contributor

Nosotros manejamos otros plugins sin problemas, pero creo que nunca he probado la cámara
Si no me equivoco, lo que falta es implementar el método:

    @Override
    public void onActivityResult(int requestCode, int resultCode, Intent intent) {
     }

@litiobat
Copy link
Author

litiobat commented Aug 4, 2015

Hola!
Todos los plugins funcionan correctamente, excepto la cámara (hacer foto/video o cargar fichero foto/video) porque deja la app en "pausa" y no recupera correctamente al hacer el resume.

He probado a implementar el onActivityResult dentro del WebViewPlugin.java, pero no regresa a ese punto, sino que vuelve al del hilo principal, con el activityResultCallback vacío (null).

Al poner la app en "pause" cuando la llamada a Camara se hace desde un segundo webview, todos los datos se anulan y pierde el hilo, por lo que no sabe dónde regresar, ni que plugin le ha hecho la llamada.

¿Alguna idea se te ocurre que me pueda guiar? Me está volviendo loco :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants