DevWithCoffee

Member

Last active 11 months ago

  1. last year
    Fri Dec 30 17:43:24 2022

    Your screenshot does not appear.
    It must be the limit of memory that the compiler can use.

    But don't get me wrong, why would an App be over 100Mb, have video resources or long songs with high quality?

  2. 2 years ago
    Sat Jan 22 15:20:21 2022
    DevWithCoffee posted in download link to pdf file not work.

    Ask the website developer to use the download attribute in the link to PDF files.

    That's why:

    <a download="filename.pdf" href="pathurl/filename.pdf">LINK</a>

    Example:

    <a download="book1.pdf" href="https://mysite.me/encryptedpath/keyasdasdasd?redirect">Download</a>

    It may not work for customers with Android devices older than version 5.1, this is due to the WebView version.

    If that doesn't work, the webmaster will need to modify the htaccess file to force direct download of files in specific formats:
    Stack Overflow

  3. Sun Jan 16 02:38:39 2022
    DevWithCoffee posted in Usar Off-line e depois sincronizar .

    I modified the function, as I realized that it is unnecessary to use TRY to check if it is an APP generated by the Software.
    Please update the code on your site to improve performance.

    I also did the test with an Android 5.0 with the outdated Web Browser and it is proven that the downloads do not receive the virtual name of the files:
    -image-

    I also created an APP following the same basis as your website and solution 4 really was the best, but it will not solve the problem for older Smartphone users.
    I removed all other solutions as none worked.

    Good luck.

  4. Sat Jan 15 19:31:02 2022
    DevWithCoffee posted in Exoplayer.

    If this exoplayer is inside an IFRAME and it's not the same protocol as the parent page, it probably won't load.
    If you can share your homepage address I can analyze it.

    If it is a Local HTML Website page you will need to enable the extra option Allow Cross-Origin

  5. Sat Jan 15 19:20:53 2022
    DevWithCoffee posted in Detect dark mode.

    Hi.
    Try using Javascript as this is the correct function for any modern browser (HTML5):

    window.matchMedia('(prefers-color-scheme: dark)').matches

    Source and Example: https://flaviocopes.com/javascript-detect-dark-mode/

  6. Sat Jan 15 18:50:52 2022
    DevWithCoffee posted in Usar Off-line e depois sincronizar .

    @KIVEL SKINZ Boa noite! Ainda está o mesmo problema na hora de baixar arquivos pelo drive, os nomes não vem como foram renomeados.

    Primeiramente peço gentilmente que tente postar suas dúvidas em inglês futuramente, para que mais participantes se interessem.

    Sobre seu problema, primeiro você deve entender o que está acontecendo:

    O problema não é do gerador de APK e sim do Google Drive, pois ele tem uma série de verificações para segurança e outros fatores que não estão adaptados ao WebView do Android.
    Pode fazer o teste, alguns navegadores de computador vão baixar o arquivo com a nomenclatura verdadeira que é essa carreira de letras aleatórias.
    O correto seria usar a API do Google Drive, mas exige algum conhecimento com JAVASCRIPT.

    Então vamos tenta essa solução, não será necessário editar nenhuma postagem do seu BLOG:
    Solução 4: Essa solução consiste em abrir os links do Google Drive fora do Aplicativo, a própria API do Website2APK permite abrir links fora do aplicativo. Então para filtrar apenas os links do Google Drive eu criei essa funcção de JAVASCRIPT, deve ser inserida no cabeçalho da sua página dentro e <script></script>:

    function isGD() {
    	/*Verificar se está navegando pelo APK*/
    	if (typeof(Website2APK) != "undefined") {
    		var posts=document.getElementsByClassName("post-body");
    		/*Converte todos os links do Google Drive para comandos da API*/
    		for (i=0;i<posts.length;i++) {
    			tmp_a = posts[i].getElementsByTagName("a");
    			for (j=0;j<tmp_a.length;j++) {
    				if (tmp_a[j].href.slice(0,25) == "https://drive.google.com/") {
    					tmp_a[j].setAttribute("onclick", "Website2APK.openExternal('"+tmp_a[j].href+"')");
    					tmp_a[j].removeAttribute("href");
    				}
    			}
    		}
    	}
    }
    /*Dispara a funcção logo após o carregamento da página*/
    window.addEventListener("load", isGD, false);

    Essa funcção vai ser executada automaticamente após a página carregar por completo.

    Essa funcção vai transformar um link assim:

    <a href="https://drive.google.com/drive/folders/1uLeRXjsQmbd6KTAzjDpKAs9yJ6B2wUIc">DOWNLOAD</a>

    Para isso:

    <a onclick="Website2APK.openExternal('https://drive.google.com/drive/folders/1uLeRXjsQmbd6KTAzjDpKAs9yJ6B2wUIc')">DOWNLOAD</a>

    Cada cliente usa navegador que preferir como padrão no smartphone, então não é garantido que todos funcionem, eu testei com os seguintes navegadores, em todos funcionaram:

    • Google Chrome
    • Firefox
    • Samsung Internet Browser (Navegador nativo para dispositivos Samsung)

    ************************************************************************

    Considerações finais.
    Vale ressaltar, o problema não é no APK gerado e sim as verificações ou permissões do Google Drive.
    A maioria dos APPs desenvolvidos com incorporação de páginas WEB precisam de códigos em JAVASCRIPT que permitam adaptar a página para cada plataforma de navegação, que variam entre Android, IOS, Desktop e navegadores alternativos, cada navegador tem as próprias regras.

    Cabe ao desenvolvedor do Front-End estudar um pouco mais, pois não são coisas que necessitam de um curso profissionalizante através de tutoriais gratuitas encontradas pela internet e se empenhar em praticar fazendo testes de simulação.

  7. Sat Jan 15 13:36:06 2022
    DevWithCoffee posted in APP BUNDLE TIMEOUT.

    But the software does the compilation locally, no internet speed required.
    What must be happening is that if you are using "Local HTML Website" mode then you are using a very large file and your computer does not have enough memory to work with very large files.

    If you tell the API you're using in your code or show a screenshot of the files you're trying to compile, there might be a solution.

  8. Fri Jan 14 22:33:34 2022

    Hello.
    Purchases are made here:
    https://websitetoapk.com/pricing.html

  9. Thu Jan 13 02:05:27 2022
    DevWithCoffee started the conversation What is the best API for reading and writing local files?.

    I am creating an APP in "Local HTML Website" mode.
    I assume that by giving "READ..." and "WRITE..." permissions, I can also use this mode via some native or third-party API.
    I would like a recommendation.

    English is not my first language, so sorry my text is confusing.

  10. Wed Jan 12 22:17:27 2022
    DevWithCoffee joined the forum.