Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49186

iOS on resume

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 49186

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>