Report question

Question: iOS / XCode: how to know that app has been launched with a click on notification or on springboard app icon?