1. Are you ready for the Galaxy S20? Here is everything we know so far!

HTML cannot open another HTML while direct url from Chrome works

Discussion in 'Android Lounge' started by gonen52, Mar 11, 2022.

  1. gonen52

    gonen52 Lurker
    Thread Starter

    Hi

    I have HTML that runs in Android.
    This HTML needs to open another HTML

    After days, Dannydet pointed to me that as from Android 11 - Chrome will recognize a file - only if it is located in the Downloads folder.

    this was a great start and when I entered url like this:
    "file:///storage/emulated/0/Android/data/com.android.chrome/files/Download/Final_Days.html"
    directly in Chrome - it worked !!

    but, when I try to run the same url - from HTML - using href or windows.open I always get
    about:blank#blocked

    I gave Chrome all permission I know.

    Any idea why the Chrome direct url opens the HTML and the href/windows.open from HTML is blocked?
    What did I miss?

    thank you very much for any help
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...

Share This Page

Loading...