You can add yourself as an observer of the UIApplicationDidFinishLaunchingNotification
notification which will be posed by the application and contains the information you are looking for.
As @Stavash suggests, there are limitations. For the first launch you won't be able to pick this notification up because the instance of your library won't be created (your class would need to be in the root XIB). But, this notification will also be sent when the app is re-opened for local / remote notifications.