I am trying to figure out how to detect when my app has been “minimized” (ie. no longer is active) and when it is restored. It’s important because I want to disconnect/reconnect SocketIO when the app is restored and kill it when it’s minimized.
I’ve found docs on Ionic 1 with the “pause” and “refresh” events, but I can’t find any examples on how to use this with Ionic 2.
Any advise would be very appreciated!