https://github.com/stillenklipse/EjectaAppState

This maybe too much overhead for most projects, but in my game I wanted to be able to alert a Pause/continue screen when the app comes out of background status.

This sets a flag when the app is going to the background. You can alert the user then reset the flag.