Open kittipongm opened 6 years ago
Try to write this. if ([[NSDate date] timeIntervalSince1970] > ([expiresDateMs doubleValue] / 1000.0f) ) {
[[NSNotificationCenter defaultCenter] postNotificationName:kMKStoreKitSubscriptionExpiredNotification object:productIdentifier];
}
On line: if ([[NSDate date] timeIntervalSince1970] > [expiresDateMs doubleValue]) {
The expiresDateMs is milliseconds but the first one is in seconds.