Probably the easiest way is to implement the function applicationDidBecomeActive() in your app delegate. That will be called when your app becomes active as the foreground app either on launch, or when it returns to the foreground as the active app.

Note that if you want that notification sent to some object other than the app delegate you can listen for the UIApplicationDidBecomeActive notification.