Member
Last active 3 years ago
Since API 28, local files are forbidden (you cannot download them). At least, not possible now without a little fine-tuning on the Java side.
The openExternal() uses GET to send the request.
Is it possible to set a secondary (and optional) parameter to make a POST request, instead of a GET one?
Having the same issue, but my case is a bit different, I'm creating the image file on the fly and need to save it to user's device. And I get a toast sayings that Cannot download the file if it is not coming from http/url, which is a crossOrigin problem, as my app is local and uses the file:// protocol.
I've heard that it might be unblocked by toggling some lines of code in the java files, but we don't have access to it.
Could this code help?
@Override boolean onJsPrompt (WebView view, String url, String message, String defaultValue, JsPromptResult result) { final EditText input = new EditText(main); input.setInputType(InputType.TYPE_CLASS_TEXT); input.setText(defaultValue); new AlertDialog.Builder(myApp) .setTitle("App Titler") .setView(input) .setMessage(message) .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { result.confirm(input.getText().toString()); } }) .setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { result.cancel(); } }) .create() .show(); return true; }
I have a Javascript library which creates and saves QR codes. It worked like a charm on the browser but now that I am compiling everything in an offline app, there's no way I can save the QR image. I get the same error described by Ricardo Nuñez before. I get the alert:
Can only download HTTP/HTTPS URIs, followed by the image internal code.
Already turned on all possible rights for the app and still getting the same problem. As stated, it should be related to the restrictions that since API 28 have all those files using the protocol file://. Ok, that's the problem, but... which is the solution? Could anyone help me out with it?
I've read that it could be solved:
https://stackoverflow.com/questions/26379174/download-images-using-android-webview
Another sample:
https://android--examples.blogspot.com/2017/10/android-save-image-from-webview.html
Even this could help:
https://stackoverflow.com/questions/48892390/download-blob-file-from-website-inside-android-webviewclient/48954970#48954970
Is that something that could be done in a quick update? I am literally on stand-by waiting for this to release a new feature in my app. Please, give it a shot.
We already have a general option to prevent screen shots from our apps. Can we turn it on or off using the JS API, so that we could just block some pages inside our project and not all pages?
Hi, guys!
I'm wondering if I can renewal my subscription (which is about to expire) using cryptocurrency (Bitcoin, Ethereum, etc.)?
If so, could you please provide your public address and the steps to follow? So that you could match the payment with the user profile or whatever your need to do.
I downloaded version 5.0 today (Aug 1st, 2021) and when I clicked on the Build App Bundle button, I get a message saying that for offline apps it is not available yet.
Where can we get further information about the new features and how to use them, please...
I don't think it's possible from the app. Instead, you should use Javascript to read the width and height from the screen device and guess if it is a tablet. I know, it s***s. But, I cannot imagine any other solution.