If you are building a hybrid application in AppBuilder
, then you should be able to use Cordova's resume event
to track when the app is retrieved from the background:
//your custom logic
If that is not what you are looking for, please elaborate on your scenario a bit more and I will suggest more to-the-point solutions.