robotmedia / RMStore

A lightweight iOS library for In-App Purchases
Apache License 2.0
2.43k stars 450 forks source link

Verifying app version with bundle version #130

Open KennethLj opened 9 years ago

KennethLj commented 9 years ago

Hi and thanks for a great product, I was just wondering about the verifyAppReceipt method if the app version comparison with bundle version would fail whenever the user downloads a newer version of the app?

wonderffee commented 7 years ago

I also thought it's a problem, do you solve it?

wonderffee commented 7 years ago

Maybe it's not a problem, for it uses appVersion, not originalAppVersion.

/** The app’s version number. This corresponds to the value of CFBundleVersion (in iOS) or CFBundleShortVersionString (in OS X) in the Info.plist.
 */
@property (nonatomic, strong, readonly) NSString *appVersion;

/** The version of the app that was originally purchased. This corresponds to the value of CFBundleVersion (in iOS) or CFBundleShortVersionString (in OS X) in the Info.plist file when the purchase was originally made. In the sandbox environment, the value of this field is always “1.0”.
 */
@property (nonatomic, strong, readonly) NSString *originalAppVersion;