Prevent fakes when purchasing an application on a jailbreak device

I am working on a project in which I have included an In-App consumer purchase. Now on the jailbreak device, the user can make a fake purchase in the application. I have already enabled the check confirmation code

How to prevent this? Is something missing here? Can I verify that the device is locked or not?

+4
source share
1 answer

it's possible to know if your application is running on a jailbreak device, most jailbreak devices have an application called Cydia , you can check if this application exists:

+(BOOL)isJailbroken { NSURL* url = [NSURL URLWithString:@"cydia://package/com.example.package"]; return [[UIApplication sharedApplication] canOpenURL:url]; } 

Cydia has a cydia: // URL scheme that can be legally verified using the UIApplication canOpenURL:

+2
source

Source: https://habr.com/ru/post/1493353/


All Articles