$ window.location.reload no longer works android 4.4+ Ionic Angular

The app is built using ionic structure.

It was installed on a new device with Android 4.4.

Based on this question , I used this code to reload the page:

$scope.reloadRoute = function() {
   $window.location.reload();
}

      

This doesn't work in Android 4.4+

I've tried other suggestions from this answer, but they don't work for our case.

I've tried this:

location.href = location.origin;

      

This does not work. I need to restart it.

+3


source to share





All Articles