Android - Check From Web Site If Chrome App Has Storage Permission
Solution 1:
I would say that you cannot do that.
First, let's look at how the Chrome android application check if the storage is granted.
You can use some tools such as jadx-gui to see the code of the chrome application, inside it, search for permission checking. Here we are interested in "WRITE_EXTERNAL_STORAGE", you can see that this permission is checked inside the DownloadController class, reading a bit how this class work allow us to understand that when something want to download any file, and want to save it, first they check if the permission is granted, if it is not, they display an alert dialog (the one you showed in your question).
The problem with this, is that with JavaScript you cannot interact with methods inside the chrome application if they are not any interface setup.
Solution?
The best thing you can do is to put a message on your website before the user download the application. Trying to figure out a solution for the Chrome android application is not a good idea because that would be very difficult and pointless for any other web browser, because they all manage permission (such as storage) in different way.
Post a Comment for "Android - Check From Web Site If Chrome App Has Storage Permission"