@turko wrote:
Hello, I need a view in my app to refresh everytime the app comes back to the foreground. The code below is working perfectly with Android but nothing happens on iOS.
$ionicPlatform.on('resume', function() { if($state.current.name == "app.listar_aprovacoes"){ // code to refresh scope and view. }; });
I also tried the following and it also doesn't work with iOS:
document.addEventListener("resume", function() { var alertPopup = $ionicPopup.alert({ title: 'Foo', template: 'Bar' }); }, false);
So could you help me out with a solution to this problem?
Posts: 1
Participants: 1