How to know if iPhone is in recovery mode from my App

143 Views Asked by At

All

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.

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.

is it achievable or any other suggestion?

1

There are 1 best solutions below

4
On

whenever the server communicates with the device, check if the device identifier exists in the keychain, if not, then send a call back to server asking to deactivate the device identifier from the server.