How can i check product is purchased in ios?

650 Views Asked by At

I have 3 subscription. now I have bought 1 subscription in my signup screen using my itunes email id but now I open once again signup then i want to check which product is purchased using same itunes email. If any product is purchased then I want open my new view. How can I check which product is purchased in view did load method?

Please help

1

There are 1 best solutions below

4
Ajjjjjjjj On

when your purchase occurs, then Apple returns the receipt corresponding to that product ID
OR

you can use that as well to save in userdefault like this as i am doing:

 [[NSUserDefaults standardUserDefaults] setBool:YES forKey:productIdentifier];

And where ever u need to check for purchase then access value from userDefault :

BOOL check3 =  [_stdDefaults valueForKey:InApp_Effects];