Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 4    Views: 69

trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
04/16/13 05:06 PM (12 years ago)

Easy IAP

I have a menu (call it menu1), and some items in the menu link to the easyIAP screen before then going forwards to the content. What is happening, is that even if the content has been purchased, next time you go to menu1 and select the iap content, i get the purchase screen. Obviously, clicking Purchased Screen then proceeds, until the next time. Is there a way around this or a fix?
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
04/16/13 05:13 PM (12 years ago)
If it was me I haven't used the plugin as I don't make apps per se just plugins and custom UI. You could set up a NSUserdefault I'm guessing the plugin must use it store whether it has been purschased or not. Some where in the view did load method so if (pluginBought = YES) { [self Automatically load next screen]// there will be a method that uses your } I'm sure it requires only a few tweaks
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
04/16/13 05:24 PM (12 years ago)
Wouldn't IAP require this to check the purchase has already been made?
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
04/16/13 05:31 PM (12 years ago)
Yeah it will, it must do. But you need to find that line and implement the code to bypass needing to press another button.
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
04/16/13 06:04 PM (12 years ago)
easy_in_app_purchase.m // if the user has already purchased, then [self isAlreadyPurchasedShouldGoToScreen:YES]; cheers
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.