title: How to know if iPhone is in recovery mode from my App
body: <p>All</p>
  
  <p>I am working on an app where i m storing DeviceIdentifier in keychain(thanks to deprecated method in ios6 to fetch unique identifier all the time)for later use to identify that it is a allowed device to use app.</p>
  
  <p>i am storing it in keychain , what i want to achieve is if device is in recovery mode or if someone restoring a backup i want to send request to the server to deactivate this device identifier which is stored in keychain, before keychain get deleted.</p>
  
  <p>is it achievable or any other suggestion?</p>