Search code examples
ioscrashlyticsgoogle-fabric

How can I use Fabric's/Crashlytics' code to check if a device is jailbroken?


I want to check if a user uses a jailbroken device. Fabric/Crashlytics uses code to detect if a device is jailbroken as can be seen on a Crashlytics crash page. But I was wondering if I could use that code as well?

On Android the code to check a rooted device is accessible like this: CommonUtils.isRooted(this).

I was wondering if the iOS code of Fabric/Crashlytics also contains code like this that can be used? Of course I can write my own code, but it would be nice to use the code of Fabric/Crashlytics.


Solution

  • Fabric doesn't have an API to check if the device is jailbroken on iOS. On Android, you could use CommonUtils.isRooted(this).