🟨 WebViewExtra - Upload/Download Files with webviewer

TIMAI2 Necesito tu ayuda creo que debo explicarte mejor el tema, te cuento quiero empaquetar una pagina web con el componente web view, custom web view o cualquier otro.

La pagina en si es una aplicacion mobile de ticketing
la pagina tiene el mecanismo de subir archivos a los tickets de forma embebida por ello no tiene sentido agregar botones a mi apk.

la aplicacion web desde el navegador pide al usuario del telefono movil que otorgue permisos de ubicacion ya que los tickets deben cargar la ubicacion desde donde se crean los tickets es decir de donde el usuario se encuentra en ese momento.

en mi caso lo hice y funciona todo el sistema de tickets pero no puedo ni cargar archivos ni la ubicacion.

espero puedas ayudarme

PD: Nose mucho de programacion no me dedico a esto.

Would need to see more as to how the ticketing app works and the functionality in the JavaScript/ PHP code for uploading files and data.

This Is the page

https://pexterna.grupogtd.com/web/guest

If you need users and password Tell me

Como puedo enviarte las credenciales de forma privada ? Para no dejarlas por acá ya que cualquiera las podría usar y el aplicativo ya está en modo productivo

Use a PM (private message) - I have sent you one to reply to.

Does this extension support the clear cache feature?

Not that I am aware of

Ok, thank you for your answer.

The webviewer itself has a clearCaches method...

image

2 Likes

Can I use your extension and the standard webviewer together? Because I need to clear cache when opening the webviewer every time.

My extension requires the native webviewer, it enhances the webviewer's functionality.

2 Likes

Ok, thank you for your response

Update 1.71.release

Added a fix which hopefully resolves the Broadcast Receiver export issue with API 34 / Android 14.

Can be downloaded from the link in the first post of the topic.

Update 1.8.release

webviewextra should now allow you to download files from blob urls. You will not get a notification like you do with ordinary downloads, and because blob urls generally do not have a filename, a filename is created using the format file_currentMilliseconds.ext.

This functionality has taken over two years to apply, much digging and searching on the internet finally resolved with this post in July 2024

Download the file with blob URL in Android WebView - Tech Blogs

1 Like

Por favor, tenho um webview configurado para abrir uma url ao iniciar. Alguém pode enviar imagens da configuração para download deste site.

Just click on the link to download the file in your web page, it should start downloading.

1 Like

Muito obrigado, funcionou.

Hello, I would like to ask if it is possible to have an option not automatically download the files but instead pass the URL to an event?

That could be tricky, very often urls are obfuscated/dynamically generated within the standing website that would mean nothing as a url back in the app, e.g. blob urls. I have no real desire to include such functionality (things are complicated enough !).

It may be possible to do what you want with the CustomWebView extension ?

Ah, I guess it is. It just wasn't very clear on how to utilize the CustomWebView extension. I'll look more into it, thanks!