Goto specific page on device resume


#1

How can i redirect to specific page on device resume from pause state?

Something like this below:

angular.module('myapp', ['ionic', ...]
...
$ionicPlatform.on('resume', function(){
            console.log("Device on resume");
            $state.go('my-specific-page');
        })

thanks!!!