So I've been working on a Cordova app with AngularJS and everything seems to be running smoothly in Chrome and other browsers. However, when I try to install the apk on Android, AngularJS doesn't seem to execute the index.html upon launch.
What's even weirder is that if I navigate to other pages and then come back to the index.html, everything works fine! And if I close the app and open it again, everything goes back to normal. Sometimes, very rarely, it repeats this issue, but only with the index.html page.
This is how my index.html looks like on launch:
As mentioned, the other pages work fine most of the time:
I'm using Android 7.1.1 / Cordova 7.0.1 / Angular 1.6.4
Here is the code for my index.html: (Each 'ng-init' inside 'ng-owl-carousel' makes a $http request)
<!DOCTYPE html>
<html ng-app="baseApp">
...
...
...
</html>