Quantcast
Viewing all articles
Browse latest Browse all 70867

iOS on resume

@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: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70867

Trending Articles