Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Restore purchases SUBSCRIPTIONS_SHEET_RESTORE #1194

Open
raissetto opened this issue Oct 31, 2013 · 1 comment
Open

Restore purchases SUBSCRIPTIONS_SHEET_RESTORE #1194

raissetto opened this issue Oct 31, 2013 · 1 comment

Comments

@raissetto
Copy link

When I have a issue with ProductID, i don'ts see the button SUBSCRIBE_BUTTON_TEXT (subscribe) with restore purchases.

In the ShelfViewController method ViewWillAppear
buttonItems does not add self.subscribeButton because [issueManager hasProductIDs] return false.

But after issues refresh i have an issue with ProductID and then I need to display a button.

my workAround:
I create a method called in the ViewWillAppear and in the handleRefresh method if status==YES

this is code in the method

ifdef BAKER_NEWSSTAND

NSMutableArray *buttonItems = [NSMutableArray arrayWithObject:self.refreshButton];
if ([purchasesManager hasSubscriptions] || [issuesManager hasProductIDs]) {
    [buttonItems addObject:self.subscribeButton];
}
self.navigationItem.leftBarButtonItems = buttonItems;

endif

@nin9creative
Copy link
Contributor

Not quite sure what you mean?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants