Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Detect if my app is closed

$
0
0

Closest you can get is event that tells you when the App has entered the background. Put this into your .run():

    //handle Cordova resume (enter foreground) and pause (enter background events)
    $ionicPlatform.on('resume', function() {
        
    });

    $ionicPlatform.on('pause', function() {
        //Do something here on entering background
    });

Viewing all articles
Browse latest Browse all 228595

Trending Articles



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