2

I need to make sure a specific security policy (ActiveSync policy) is installed on an iOS-device in order to "lightly" authorise users of my app. Is this possible?

Any comments or resources describing any of this, would be nice.

Raptor
  • 53,206
  • 45
  • 230
  • 366
Claus Machholdt
  • 187
  • 3
  • 12
  • What kind of security policy are you referring to ? – Raptor Apr 14 '15 at 09:49
  • Instead of checking ActiveSync Policy exists or not, you should use a Configuration Profile. Read [this](https://developer.apple.com/library/ios/featuredarticles/iPhoneConfigurationProfileRef/Introduction/Introduction.html) – Raptor Apr 15 '15 at 02:28

1 Answers1

0

You can check it by wether that target device is jailbroken or not. Generally you can check it by check Cydia.app is it inside application.

NSString *filePath = @"/Applications/Cydia.app";
if ([[NSFileManager defaultManager] fileExistsAtPath:filePath])
{
    // do something useful
}

Another possible outcome is, your app gets cracked. Here is one of the ways to detect if your app was cracked.

Viral Savaj
  • 3,379
  • 1
  • 26
  • 39
  • @Viral really? you can't use `fileExistsAtPath` in `/Applications` folder. It's out of App's sandbox access. – Raptor Apr 15 '15 at 02:05