Skip to content

Subscription remains active, if device date changes #3

@NikhilPawar86

Description

@NikhilPawar86

Hi JC,
First of all I want to thank you for the wonderful work.

I'm currently integrating JCSubscriptionManager in my project. I'm facing following issue while testing. If current I'm subscribed & changing device date to few date prior to current date, then I can access the subscription more, for number of days I have taken prior to current date.

As in isSubscriptionActive method following condition has been checked
if (expirationInterval.doubleValue > [[NSDate date] timeIntervalSince1970]) {
return YES;
} else {
[self setSubscriptionExpirationIntervalSince1970:nil];
return NO;
}

So, if [NSDate date] changes then subscription will remain activated, no matter even if actual subscription may have been expired.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions