Open KennethLj opened 9 years ago
I also thought it's a problem, do you solve it?
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;
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?
(BOOL)verifyAppReceipt:(RMAppReceipt*)receipt { if (!receipt) return NO;
if (![receipt.bundleIdentifier isEqualToString:self.bundleIdentifier]) return NO;
if (![receipt.appVersion isEqualToString:self.bundleVersion]) return NO;
if (![receipt verifyReceiptHash]) return NO;
return YES; }