title: How to detect an iOS App installed or upgraded?
body: <p>I am developing an application and i need to know whether user installed the app for the first time or upgraded it from the App Store.</p>
  
  <p>How can i detect whether app is installed for the first time or upgraded or re-installed?</p>
  
  <p>Thanks for your answers in advance.</p>