Assuming that I have an app with no in-app purchases, I just need to verify that an app has actually been downloaded from the App Store.
All the information I find when searching for this is about in-app purchase receipt validation. In order to check if it's an App Store download, is it enough to just check if the App Store receipt exists and is valid? Is there any way to test this in a sandbox?
Edit
To test in sandbox, I do this:
NSURL *rURL = [[NSBundle mainBundle] appStoreReceiptURL];
NSError *err;
if (![rURL checkResourceIsReachableAndReturnError:&err]) {
NSLog(@"Found no receipt");
}
and I always get "Found no receipt".
I also did this:
SKReceiptRefreshRequest *request = [[SKReceiptRefreshRequest alloc] initWithReceiptProperties:nil];
request.delegate = self;
[request start];
still can't find any receipt.