3

Is there any method to know if an app is installed from App store of OSX or installed from some other places? I want to implement this using object c.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
jimwan
  • 1,086
  • 2
  • 24
  • 39
  • 3
    @ThomasW This is about an OS X app, not iOS. – rmaddy May 20 '15 at 03:08
  • OK, even if it is not for OS X, I suspect the answer here will help you: http://stackoverflow.com/questions/16087779/detect-appstore-installation-of-ios-app – ThomasW May 20 '15 at 03:16

1 Answers1

3

You can check whether the app came from Apple's app store by attempting to validate the receipt. You can read about receipt validation in the Receipt Validation Programming Guide, and searching for something like "mac app store receipt validation" will turn up a number of samples like this one. Apps that are downloaded from sources other than Apple's app store won't have valid receipts.

Caleb
  • 124,013
  • 19
  • 183
  • 272