简体   繁体   中英

How can i check product is purchased in ios?

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

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];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM