Access remote JSON file through WebView

Viewed 79

I have prepared HTML/CSS/JS page which reads a simple JSON file from a server using fetch. It works perfectly.

Then I use Webview in Android Studio to make an app of the page. It compiles perfectly and on the simulator I can see the data of the remote JSON file. I suppose this means that everything works OK.

However when I compile and install the APK , the data is not there.

Does anybody suspects why the App installed on the phone does not connect to the server and fetch the JSON file ?

1 Answers

I think I found out. https should be used instead of http !

Related